Question 240
At fictional Northbridge Transport, the Business Central development team is supporting route billing and inventory and reviewing automated testing and diagnostics during an AL developer handoff (MB820-5.1-166). The observed development issue is that a team installs the Test Toolkit but never runs extension tests through it during releases. Which Business Central or AL development principle best explains the right response?
Explanation
Correct Answer
The governing principle is that testing infrastructure is valuable only when it gates delivery. The engineering response is to configure and execute supported Business Central tests in the Test Toolkit or automated test runner. Verification should show that the build is blocked when an AL test codeunit fails.
Incorrect Answers
“Integration tests should isolate consequential external actions” concerns the alternative task “use controlled HTTP mocks or supported test isolation and fixture responses”, but the stated failure is that a team installs the Test Toolkit but never runs extension tests through it during releases. The required measure is to configure and execute supported Business Central tests in the Test Toolkit or automated test runner.
The proposed “Reusable test fixtures reduce validation drift” tests a different control: use shared test helpers and a clear arrange-act-assert structure. The reported condition is that a team installs the Test Toolkit but never runs extension tests through it during releases; the more direct action is to configure and execute supported Business Central tests in the Test Toolkit or automated test runner.
“Test isolation must include the underlying business database” supports the separate task “run Business Central tests using an isolated test environment and controlled fixtures”, not the reported problem: a team installs the Test Toolkit but never runs extension tests through it during releases. This case instead calls for “configure and execute supported Business Central tests in the Test Toolkit or automated test runner”.