Build Process
What is the Build Process?
The build process is the automated (or manual) process of compiling source code, running initial checks, and packaging an application into a deployable artifact, often called a "build."
Typical Steps in a Build Process
- Source Code Checkout: Pulling the latest code from version control.
- Compilation: Converting source code into executable form.
- Static Analysis: Running automated code quality and security checks.
- Unit Test Execution: Running automated unit tests as part of the build.
- Packaging: Bundling the application into a deployable format.
- Build Versioning: Assigning a unique version/build number for traceability.
Why It Matters for Testing
A reliable, automated build process ensures testers always work with a consistent, traceable build, and enables continuous integration practices like frequent smoke testing of new builds.
What a Build Pipeline Looks Like in Practice
In most teams, the build runs automatically on a CI server such as Jenkins, GitHub Actions, GitLab CI or Azure Pipelines whenever code is pushed. Here is a simple GitHub Actions workflow for a Java project that compiles the code, runs unit tests and stores the packaged file:
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Compile, test and package
run: mvn -B clean verify
- name: Save the artifact
uses: actions/upload-artifact@v4
with:
name: app-build-${{ github.run_number }}
path: target/*.jar
The clean verify goal deletes old output, compiles, runs unit tests and packages the application. If any test fails, the build is marked red and no artifact is produced, so broken code never reaches the test environment.
Where Testers Fit into the Build Flow
- Build is produced with a unique number, for example from the CI run counter or a version tag.
- Build is deployed to a QA environment, either automatically or by a release engineer.
- Smoke or build verification tests run to confirm the core flows work: the app starts, login works, main pages load.
- Build is accepted or rejected. A rejected build goes back to developers with clear evidence; an accepted build moves to detailed testing.
- Defects are logged against the build number, so everyone knows exactly which version showed the problem.
Always read the build notes or release notes before testing. They list the stories and fixes included, which tells you where to focus regression and retesting.
Build Types You Will Hear About
| Build type | Purpose |
|---|---|
| CI build | Runs on every commit to catch problems quickly |
| Nightly build | A fuller build with longer test suites, run on a schedule |
| Release candidate | A build the team believes could ship, used for final testing |
| Hotfix build | A small, urgent fix built from a release branch |
Mistakes and a Tester's Checklist
- Testing a build that was compiled on a developer's laptop rather than the CI server, which makes results hard to reproduce.
- Not recording the build number in bug reports.
- Starting full regression before the smoke test passes, wasting a day on a broken build.
- Rebuilding the same version number with different code, which destroys traceability.
Checklist before you begin testing: the build number is known, it came from CI, the environment shows the same version, release notes are read, and the smoke suite has passed.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.