Code Assurance

Guide

How to improve QA in your company

By Martin Backhaus and Mariano Backhaus, Founders · Published

Short answer

Start by finding where bugs escape today, then put your testing effort where the risk is. Map your critical flows, test each one at the cheapest level that catches its bugs, automate the checks you repeat on every release, and keep the suite trustworthy by fixing or removing flaky tests. Make quality part of how stories are written, not only how they are checked.

01

Where are your bugs escaping today?

Improvement starts with evidence. Take the last twenty or thirty bugs that reached users or were found late, and for each one write down where it should have been caught: in the requirements, in code review, in a unit test, in an API test, or in a manual check before the release.

Patterns appear quickly. Maybe most escaped bugs come from one module, from integrations with a third party, or from changes nobody tested again. That pattern tells you where to invest first, which is more useful than any generic best practice.

02

Which flows carry the most risk?

Not every part of a product deserves the same testing. A risk map lists your main modules and flows and rates each one on two questions: how likely is it to break, and how much does it hurt when it does? The usual suspects:

  • Flows that touch money: checkout, payments, refunds, invoices
  • Access: sign-up, login, password reset, roles and permissions
  • Integrations with third parties and with other internal services
  • Areas that change often or have a history of bugs
  • Anything with legal, security or data-loss consequences
03

How detailed should the risk map be?

Short enough that the whole team reads it. A page listing modules, their risk and what covers them today is enough to start. Start your effort at the top of that list, and update the map whenever an escaped bug shows that a risk was rated too low.

If you can, build the map from the codebase rather than from memory: which modules exist, which tests already touch them and which flows have none. It is less flattering, and much more accurate.

04

At which level should you test each thing?

Each kind of test catches different bugs at a different cost. Unit tests are fast and cheap but don't see how the pieces work together. API tests check behavior and contracts without the fragility of the interface. End-to-end tests prove that a real user journey works, but they are slower and break more easily. Manual and exploratory testing finds what nobody thought to script.

Test each behavior at the lowest level that can catch its bugs, and keep end-to-end tests for the critical journeys where the integration itself is the risk. A suite that leans on end-to-end tests for everything becomes slow, flaky and expensive to maintain.

05

What should you automate first?

Automation pays off on what you repeat. In order:

  • The critical flows from your risk map, starting with a smoke suite that runs on every pull request
  • Regression checks you repeat by hand before every release
  • API checks for integrations and the contracts between services
  • Test data setup, so tests don't depend on whatever someone left in the environment
06

Where should automated tests run?

In your CI pipeline, with their result as part of the merge decision. Tests that only run on someone's laptop don't protect anything. Keep the pull request suite fast, and run broader suites on a schedule or before releases.

Make failures easy to read: the step that failed, the screenshot or the request, and the logs. When a red build takes minutes to understand instead of hours, people stop ignoring it.

07

How do you deal with flaky tests?

A flaky test passes and fails without any change in the code. A few of them are enough to teach a team to ignore red builds, and then the suite stops protecting anyone.

Set a simple policy: every flaky test has an owner and is either fixed, quarantined while it is being fixed, or removed. Track how many tests are quarantined and treat a growing number as a problem. The usual causes are unstable selectors, fixed waits instead of waiting for a condition, shared test data, and tests that depend on the order they run in.

08

How do you build quality into the process, not just the testing?

Most bugs are cheaper to prevent than to find. A few habits do most of the work:

  • Write acceptance criteria that can be tested, and review them before development starts
  • Include testers in refinement, where questions are cheap to answer
  • Add a definition of done that includes tests and a look at the risk map
  • Make one person accountable for release readiness on each release
  • Review escaped bugs together every few weeks, without blame, and update the risk map
09

How do you know it is working?

Pick a few measures and watch them over months, not days: escaped bugs per release and how severe they are, how long it takes to know whether a build is safe to ship, how many tests are flaky or quarantined, and how much of the risk map is covered by automated checks.

Avoid counting test cases. A thousand tests on low-risk screens are worth less than twenty on the flows that pay your bills.

A thousand tests on low-risk screens are worth less than twenty on the flows that pay your bills.

10

Where can outside help speed this up?

Code Assurance helps teams at each step: building the risk map from your codebase, automating the critical flows in your framework, stabilizing a flaky suite, and adding QA engineers to your sprints. Our AI QA agent maps coverage and writes tests as pull requests that a senior QA engineer reviews before they reach you.

11 / FAQs

FAQs

Where should a small team start improving QA?

With the escaped-bug review and a short risk map. Then automate a smoke suite for the most critical flow and run it on every pull request. That alone changes how releases feel.

Do we need a dedicated QA engineer to improve QA?

Not to start. Developers can take the first steps. A dedicated QA engineer helps when testing starts to compete with building features, or when nobody owns release readiness.

How much test automation is enough?

Enough that your critical flows are checked on every change and you trust the result. Coverage percentages matter less than whether the tests cover the risks on your map.

How long does it take to see results?

The first changes, such as a smoke suite on pull requests and a flaky-test policy, show results within weeks. Fewer escaped bugs usually becomes visible over a few release cycles.

Should developers write tests, or testers?

Both. Developers usually own unit and many API tests; testers bring the risk view, exploratory testing and the end-to-end journeys. What matters is that someone owns each level.

Start

How it starts

Month-to-month, no long contract. You pay to start, and if the first month doesn't work for you, you stop there.

  1. 01
    A 15-minute callYour product, your stack and what's hurting today.
  2. 02
    Week 1: the coverage mapRisk map by module, top issues with quick wins and a prioritized test backlog, built from your code.
  3. 03
    PlanTest strategy, coverage plan and quality gates you can measure.
  4. 04
    DeliveryTesting and automation inside your sprints, with flaky tests triaged and the pipeline hardened.
Book a 15-minute call