ASD ISM 2032 Ensure automated tests are completed before building
What it says
The build solution ensures that all automated testing is completed without warnings, alerts or errors before building software artefacts.
Quoted as published. Everything else on this page is written by Control Stack.
In plain English
The build solution itself must stop software artefacts being built until every automated test has completed with no warnings, alerts or errors.
The build solution, meaning the automated pipeline that produces software artefacts, must make sure all automated testing has completed with no warnings, alerts or errors before any artefact is built. All three count: a run that passes but raises a warning or alert still blocks the build, and a test that is skipped, times out or does not finish has not completed. The gate is automatic and sits before the build step, so alerting the team, or approving a release after reading a test report, does not meet it.
Free. Save your status, tasks and notes.
Why it matters
If artefacts can be built while tests still warn, alert or fail, known problems, including security test findings, reach releases unnoticed or are waved through under deadline pressure. A gate in the build solution itself stops the artefact existing until the tests are clean.
How to implement
Put every automated test stage before the build stage.
Order the pipeline so unit, integration and security tests run first, and make the stage that builds software artefacts depend on all of them completing. Where tests need compiled code or a running application, run them on a test build that is then discarded.
Treat warnings and alerts as failures.
Set test runners, compiler warnings and security scanners to fail the stage on any warning, alert or error, not just errors, and remove 'allow failure', 'continue on error' and similar settings from test stages.
Count skipped and unfinished tests as not completed.
Fail the stage if any test in the suite times out, does not run or is skipped, so a partial run cannot pass. Take a test out of the suite, or suppress a warning, only through a reviewed change with a technical reason, never to get a build through.
Close routes around the pipeline.
Protect the pipeline definition from unreviewed changes, and let only the pipeline's own identity write to the artefact repository, so nobody can build and upload an artefact by hand. If a hosted build service cannot gate its own build step, trigger the build only from a test run that finished clean.
Keep it running
Recheck the gate when pipelines change, new test types or scanners are added, or projects move to another build platform. Watch for growing numbers of disabled tests or suppressed warnings, which quietly weaken the gate.
Evidence and audit
- Check 1 of 4What an auditor asks for
Ask for
Pipeline definitions for a sample of projects picked from the full repository list in the authoritative source.
Look at
Whether every automated test stage runs before the build stage, whether the build depends on all of them, and whether any test stage may fail or warn without stopping it.
Good evidence
In every sampled pipeline, artefacts are built only after all automated tests complete, and no test stage is set to allow failure, continue on error or ignore warnings.
- Check 2 of 4What an auditor asks for
Ask for
A demonstration in a test branch with one test made to fail, one made to raise only a warning and one marked as skipped, each in a separate run.
Look at
Whether the build solution stops before building any software artefact in each case.
Good evidence
All three runs stop before the build step, and no artefact from any of them appears in the artefact repository.
- Check 3 of 4What an auditor asks for
Ask for
Artefacts picked from the artefact repository, traced back to the pipeline runs that built them.
Look at
Whether each came from a run whose tests all completed without warnings, alerts or errors, and whether any artefact has no such run.
Good evidence
Every sampled artefact traces to a pipeline run in which all automated tests completed without warnings, alerts or errors before the build, and none was built or uploaded outside the pipeline.
- Check 4 of 4What an auditor asks for
Ask for
Test reports from recent runs, with recent changes that disabled tests or suppressed warnings.
Look at
Whether tests were skipped, disabled or suppressed to get a clean result.
Good evidence
No sampled run that went on to build an artefact skipped a test or left one unfinished, and every test taken out of the suite or warning suppressed went through a reviewed change with a technical reason, not as a way to get a build through.
Mappings
Closest match in ISO/IEC 27001: A.8.29, Security testing in development and acceptance, which this control partially meets.
ISO/IEC 27001: 1 mapping
This control partially meets A.8.29.
ISM-2032 requires the build solution to gate software artefact creation until all automated tests complete with no warnings, alerts or errors. Annex A 8.29 requires security testing processes to be defined and implemented across development and acceptance, which commonly includes automated security/unit/integration tests as part of CI/CD. ISM-2032 is a specific pipeline enforcement mechanism, while Annex A 8.29 is broader and covers defining the testing regime (including acceptance testing), not just enforcing clean test outcomes before build.
Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.




