Software engineering

Quality engineering

A test suite your team trusts enough to release whenever the build is green.

How we do it

Overview

In many organizations testing is still a separate phase that begins once development has finished, when the build is passed to another team and a regression cycle of days or weeks starts. The defects that come back go to developers who have already moved on to other work. Because the release date is fixed, the test cycle is the part that gets shortened, and the same conversation about acceptable risk is held before every launch.

Automation is the usual response, and it often makes matters worse because of where it is applied. A large suite of browser tests gets written against the user interface, since that is where the manual testers worked, and the result takes hours to run, fails at random and breaks whenever a screen changes. Once people have learned to rerun the suite until it passes, it costs money to maintain while no longer showing whether the build is sound, and the manual regression cycle comes back alongside it.

We treat quality as something that comes from how the software is built, which means the tests are agreed before the work starts and are placed at the layer where they are cheapest to run and most reliable. In practice most of them sit close to the code and a smaller number go through the interface. We also test performance and failure behavior deliberately, before production load does it for you. The aim throughout is a pipeline whose green result can be taken to mean that the release is safe.

Challenges we address

The failures we are usually called in to fix
  1. Regression testing sets the release calendar

    Every release has to wait for a manual pass through a long list of scripted steps. As a result the business gets only a few releases a year, and each one is large and risky because so much change has accumulated while waiting for the test cycle.

  2. A test suite the team distrusts

    End-to-end tests fail intermittently for reasons that have nothing to do with the change under test, so engineers rerun them or mark them as known failures. A real defect can then go unnoticed among the false alarms, and a red build no longer tells the team anything.

  3. Coverage figures that mislead

    The dashboard shows high line coverage because the tests execute the code without checking what it returns. The figure satisfies a policy, but it gives no indication of whether a broken calculation would be caught.

  4. Performance discovered on launch day

    Before launch the system was only tried by a handful of people in a quiet environment. Under real concurrency a single slow query holds on to its connections and requests queue behind it, and the site goes down during the campaign it was built for.

  5. Test data that blocks every run

    The tests depend on particular records in a shared environment, so they stop working when someone edits a customer or another team's run uses up the last valid order. A morning then goes on repairing data before any testing can start.

Our approach

How the work runs, in order
  1. Find where defects escape

    We read through the recent production incidents and the defects that were found late, and trace each one to the point where a test could have caught it. That shows whether the gaps are in unit logic, at the boundaries between services, in the data or under load, which in turn shows where new tests will pay back first.

  2. Set the strategy by layer

    Together with your engineers we write a short test strategy that states what is checked by unit tests, what is checked by contract and integration tests, which few journeys run end to end and what is left to exploratory testing. Each kind of risk is assigned to one layer, so the same check does not get written three times.

  3. Make the suite fast and reliable

    We move checks down from the browser to faster layers, isolate the tests from shared data, and either fix or quarantine every test that fails intermittently. The target is a suite that finishes within minutes on each change and fails only when something is wrong with the code.

  4. Test load and failure deliberately

    Performance tests run against production-shaped data, with thresholds for response time and error rate agreed beforehand. In resilience tests we remove a dependency, slow down a network or stop an instance, starting in a test environment, to confirm that the system degrades and recovers in the way its design says it should.

  5. Leave the practice with the team

    The quality gates run in your own pipeline, and developers own the tests for the code they write. We pair with your testers while they take on automation and exploratory work, and we leave behind a written routine for adding a test each time a defect reaches production.

Technical capabilities

What we design, build and operate
  • Test strategy and risk mapping

    A written plan that links each business risk to the layer and type of test that covers it, and that also states which areas are deliberately left untested.

  • Unit and component test design

    Fast, isolated tests for business logic. On critical modules we also apply mutation testing, which checks whether the tests would notice if a fault were introduced.

  • Contract and integration testing

    Consumer-driven contracts between services, together with integration tests that run against real databases and message brokers, which are started in containers for each run.

  • End-to-end automation

    A small set of browser and mobile journeys that cover the functions the business cannot afford to have broken, written so that cosmetic changes to the interface do not cause them to fail.

  • Test data and environments

    Synthetic and masked data sets are created for each run, dependencies outside your control are replaced by service virtualization, and the environments themselves are built from code.

  • Performance testing

    Load, stress and soak tests that use realistic traffic shapes and measure tail latency, throughput and resource use against thresholds stated in advance.

  • Resilience and chaos testing

    Controlled fault injection, for example a lost dependency, added latency or a failed node, which is used to verify that timeouts, retries, fallbacks and alerts behave as intended.

  • Pipeline quality gates

    Tests, static analysis, dependency scanning and performance budgets are wired into continuous integration, with clear rules about which results block a merge.

Where it applies

Business applications
  • Shortening the release cycle

    A long manual regression pass is replaced with automated checks at the appropriate layers, so that releases can be small, frequent and uneventful.

  • Preparing for a peak

    Establishing, ahead of a sale, an enrollment window or a filing deadline, that the system can carry the expected load and still has capacity in reserve.

  • A safety net before legacy change

    Tests are put around an old system before it is modernized or migrated, so that any change in its behavior is noticed and decided on at the time and does not come to light later.

  • Repairing a distrusted suite

    We audit an existing automation suite, delete the tests that check nothing, fix the intermittent ones and move the balance toward the faster layers.

  • Assurance for a supplier's delivery

    Independent acceptance, performance and security checks on software that a supplier is building for you, carried out against criteria agreed in advance.

  • Testing systems that include AI

    Conventional tests cover the deterministic parts of the system, and graded evaluation sets cover the model output, which cannot be asserted exactly.

In practice

Two situations this service is built for, and what we would do in each.

Retail and consumer goods

An online store preparing for its biggest sales day

The situation
A retailer's e-commerce platform slowed to a halt during last year's main sale, and the cause was never fully established. This year's event is a few months away and several services have changed in the meantime. The only performance evidence available is an old test run against an environment far smaller than production.
What we would build
We would build a traffic model from last year's logs, with browsing, search, basket and checkout in realistic proportions and the surge pattern of the opening hour. Tests would run against a production-sized environment holding production-shaped data, with the load stepped up until a component fails, and each bottleneck would be fixed and the test repeated. A second round would remove dependencies such as the payment provider, to check that the store degrades and does not fail completely.
What it is designed to change
The retailer would go into the event knowing the load at which the platform starts to struggle and which component gives way first. We would judge the work by checkout response time and error rate at the modeled peak, against thresholds agreed with the business beforehand.
Cross-industry

A regression cycle that limits the business to quarterly releases

The situation
An organization releases its main customer platform four times a year, and each release needs a three-week manual regression pass by a dedicated team. An earlier automation effort produced a large set of browser tests that fail unpredictably and are no longer run. Developers receive defect reports weeks after they wrote the code.
What we would build
We would trace recent escaped defects to the layer where each belonged, then write a strategy with the developers and testers. Under it, business rules would get unit tests and service boundaries contract tests, while a short list of critical journeys would stay in the browser, rebuilt for stability with data created for each run. Testers would move from executing scripts to exploratory sessions on each change, and pipeline gates would replace the regression phase one area at a time.
What it is designed to change
The length of a test cycle would no longer determine how often the organization can release. We would track the time from a finished change to production, the rate of defects found after release, and how often the pipeline fails for a reason other than a real fault.

Technologies

We work in your stack and recommend on fit. We resell nothing.
Unit and integration testing
JUnit · pytest · Jest · xUnit · Testcontainers · WireMock · Pact
Browser and mobile automation
Playwright · Cypress · Selenium · Appium
Performance testing
k6 · Gatling · Apache JMeter · Locust
Resilience testing
Chaos Mesh · LitmusChaos · Gremlin · AWS Fault Injection Service · Toxiproxy
Pipelines and analysis
GitHub Actions · GitLab CI · Azure DevOps · Jenkins · SonarQube · Stryker

Business outcomes

What changes for the organization
  • Releases that are routine

    A change that passes the pipeline can go out the same day, which makes releases small and frequent where they used to be rare and tense.

  • Defects caught where they are cheap

    A fault is usually found within minutes of being written and by the developer who wrote it, whereas before it might have been found weeks later by someone else.

  • Known limits before peak days

    You know how much load the system can carry and how it behaves when a dependency fails, and you learn this from test results well before an outage could reveal it.

  • Testers doing work only people can

    Scripted checking is automated, which leaves skilled testers free to spend their time exploring new features and questioning requirements before the code is written.

What you hold at the end

  • A written test strategy mapped to business risks
  • Automated suites at unit, contract and end-to-end layers
  • Test data generation and service virtualization setup
  • Performance test scripts, traffic model and baseline results
  • Resilience experiments with recorded findings
  • Quality gates configured in your delivery pipeline
  • A routine for turning production defects into tests

Questions buyers ask

Yes, although the work they do changes. Repeating scripted steps is a poor use of a person's time and is the part that should be automated. Exploratory testing, in which someone with domain knowledge tries to break a new feature in ways that were not scripted, finds problems that automation does not, and so does questioning a requirement before it is built. We help testers move toward that kind of work and toward writing automation themselves.

We would not set a target. Coverage tells you which code was executed by the tests but says little about whether those tests check anything, and a mandated figure is easy to reach with tests that assert nothing. The number is more useful read the other way round, since code with no coverage is certainly untested. For critical modules we use mutation testing, which deliberately changes the code and reports whether any test notices.

Only a few, because end-to-end tests through the interface are slow, sensitive to unrelated changes and hard to diagnose when they fail. We would keep them for the handful of journeys where a failure would stop the business, such as login, checkout or submitting a claim, and push every other check down to the lowest layer that can catch the fault. A suite built this way runs in minutes, and the team is much more likely to believe its results.

It should start early and continue throughout delivery, and should not be left as a single exercise before launch. A small load test on each build will catch a slow query in the week it is introduced, when the cause is still obvious. Full-size tests against a production-sized environment then come before major releases and known peaks. If all of it is left to the end, architectural problems are found when there is no time left to fix them.

Only once the basics are in place, and we do not start there. Experiments begin in a test environment, each with a written hypothesis, a small scope and a stop condition, and they move to production only when monitoring is good enough to see the effect and the team has practiced the rollback. A good deal of the value can be had without ever injecting a fault into production.

Discuss quality engineering with the people who would do the work.

Tell us what you are trying to do and where it is stuck. A principal reads every message and replies within one working day.

How we engage

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy