Question 340
At fictional Riverside Consulting, the Business Central development team is supporting professional project billing and reviewing automated testing and diagnostics during an AL developer handoff (MB820-5.1-162). The observed development issue is that an app upgrade contains a data migration but regression tests only cover fresh installs. Which Business Central or AL development principle best explains the right response?
Explanation
Correct Answer
The governing principle is that upgrade testing differs from clean-install testing. The engineering response is to seed an older app version with representative data then test upgrade preservation. Verification should show that historical records remain correct across the version change.
Incorrect Answers
“Testing infrastructure is valuable only when it gates delivery” concerns the alternative task “configure and execute supported Business Central tests in the Test Toolkit or automated test runner”, but the stated failure is that an app upgrade contains a data migration but regression tests only cover fresh installs. The required measure is to seed an older app version with representative data then test upgrade preservation.
The proposed “Regression testing needs executable assertions, not only manual exploration” tests a different control: create AL test codeunits with [Test] procedures covering success and rejection branches. The reported condition is that an app upgrade contains a data migration but regression tests only cover fresh installs; the more direct action is to seed an older app version with representative data then test upgrade preservation.
“Report tests should verify content, not merely execution” supports the separate task “assert expected dataset values or generated output with representative fixtures”, not the reported problem: an app upgrade contains a data migration but regression tests only cover fresh installs. This case instead calls for “seed an older app version with representative data then test upgrade preservation”.