Testing for DevOps Pipelines: Pull Request Testing

Testing for DevOps Pipelines: Pull Request Testing Katie Staveley December 8, 2020

January 26, 2026 · 4 min read · CI/CD

Testing for DevOps Pipelines: Pull Request Testing

Katie Staveley
December 8, 2020

So, you ’ ve completed your work. You ’ ve developed your new characteristic or create a patch, and you ’ re ready to create a pull request and submit your work to the principal arm.

But wait, are you?

As we mentioned in ourpremature post on quiz for the DevOps pipeline, just those at the apex of the try matureness model tend to conduct tests during the coding degree. Instead, most administration will commence testing at the pull postulation level. This has some disadvantages—there ’ s more examination to do and less time to do it in.

Given these constraints, what should your testing model look like? Let ’ s dive back into our infographic on testing for DevOps pipelines and explore.

Understanding the Pull Request Phase of the development lifecycle

For illustrative use, we ’ ve split what we ’ re calling the Pull Request Phase of the SDLC into two parts. The initiative part is the commit stage, in which developer add their employment into an observational branch of the beginning code. There ’ s also the PR approval stage, where the experimental ramification is merged with the main branch.

In an ideal world, developers would be able to run one series of tests every clip they commit, and then a second set of tests before the pull request is approved. In the first stage of testing, you might do:

  • Linting to eradicate obvious coding errors
  • API smoke quiz to ensure that canonical functionality still works
  • Unit try to corroborate the functionality of case-by-case commits

Looking at the infographic, you ’ ll see that many of these tests could also be performed during the coding summons. We ’ re assuming those aren ’ t completed yet. You ’ ll also notice that the second stage—before the PR approval—is where we typically see code critique for the first time. Traditionally, the pulling request phase is where the system reexamine code, intimate additional changes, and asks for farther commits. The pull request is so approved and merged formerly this process is consummate.

More mature users may have a “ build ” step where they add a testing feature that mechanically attempts to establish the experimental branch before it let flux with the beginning code. This confirms that the new features won ’ t break the build once they ’ re approved and acts as a understructure for unit-level testing. This more advanced level of automation makes it less likely that developer will take to forthwith roll back a pull postulation due to code-level failure.

Primarily focusing on the code at this stage, however, often leads to dim spots. Missing these blind spots can increase the danger that bad codification can sneak into production, potentially creating serious problems down the line. Adding more tests at this stage can greatly reduce that endangerment, salve your team time, effort, and stress.

Expanding and streamlining pull petition testing

SUSA automates exploratory testing with persona-driven behavior, catching bugs that scripted automation misses.

In an ideal world, developers would be able to perform three extra steps before the pull postulation stage is complete:

  • First, in the commit phase, developers should be able to do UI fume testing to control that their new codification hasn ’ t broken critical functionality
  • Second, developers should be able to validate that they have not broken be tests
  • Third, developers should sustain that they have the correct test reporting for their new feature

Beyond just reviewing the code and making sure that it builds, developer should be able to do sure that the application act as intended—for example, by check that the end-to-end tryout pass. You should also be able to ensure that you haven ’ t broken your tryout before you commit your changes to main.

If a trial breaks at this degree, you have an important decision to make—do you rewrite the test so that it passes with your new code, or do you rewrite the code so that it passes the trial?

The instant when you propose merging your modification into the main subdivision is not the time to make this conclusion. Instead, you should be able to measure the reportage of your tests during the commit level. Whether examination surpass or fail is only part of the equivalence - you should rather be asking whether the tests even provide coverage, whether you still provide the right averment, and whether the tests are still secure high lineament. In this style, you can apply the same standards and technology bailiwick to test as you do to coding.

Add quality to the development and screen lifecycle

Here at mabl, we make it easy to eliminate the seams between testing and development. Our solution provides a highly intuitive way for any team members - even those who might not necessarily be skilled at essay specifically - to incorporate automated testing into their workflows.

This blog is the 2nd entry in our serial on test for DevOps pipelines. To con more, see out our billet onunderstanding the code stage, deployment phase testing, and testing in production

Sign up for your costless test of mablto see for yourself how easy it is to build reusable end-to-end test flux that can be integrated into any phase of your development lifecycle.


Quality Engineering Resources

Automate This With SUSA

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.

Try SUSA Free

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.

Try SUSA Free