Once the studio leaves, your tests are maintained by someone on your side who has already written a test in the suite, or, if your product changes weekly, by the studio on a support arrangement. Either way, your pipeline, the automated step that checks each change a developer pushes to your code, goes on running the suite on every push. What needs an owner is its upkeep, not its running.
That is because a suite has to change every time the product does. A test suite is not a deliverable like a logo, finished on the day it is handed over, so the question that decides its future is not who writes it but who keeps it alive.
The three months that decide it
If a suite is handed over green, with every test passing, and the product then changes, a few tests start to fail for legitimate reasons: the product moved, and the test still expects the old behaviour. Nobody on your team wrote those tests, so nobody is sure whether a failure means a bug or an outdated expectation. The safe response is to skip the test “for now”. Skipped tests pile up, and the rest of the suite is treated as advisory.
Nothing about this is lazy. It follows from the suite being someone else’s work.
Left alone, the slide ends with a red suite, one whose failures nobody trusts, and with you asking why your test suite is red instead of what it has caught.
A suite from our automated testing services is written against exactly this slide: in your repository, the place where your product’s code is kept, and in a language your team already reads.
What actually prevents it
Five things keep a suite from sliding. The first two are about how the tests are written, and you can check both before you sign.
Tests written in the stack your team already reads. The stack is the set of programming languages and tools your product is built with. If your developers write one language, a suite in another is an artefact they will never touch, however good it is.
Tests named after what they protect. A test called “test_checkout_3” tells a developer nothing. One called “the deposit is held when the card is declined” tells them at once whether a failure is a bug or an expectation that needs updating, and that is the decision they will be making alone once the studio has gone.
Asking a studio what its test files are called, before you sign anything, is a quick way to see how software companies test in practice: names like the second one mean the tests were written for the people who will keep them.
The other three belong to the handover itself.
Three things to settle before handover day
Someone on your side writing one test before handover. Not watching a demo: writing a test, with us sitting there, and pushing it. A person who has written one test will fix a broken one; a person who has only read them will skip it. If the person who writes it is the developer who will change the product next, the first failure after handover lands with someone who has already done this once.
A runbook written against your suite. A runbook is a short guide your developers follow step by step. Ours is written for writing the next test yourself, and it is about your suite rather than about the testing framework in general. It answers four things:
- how to run the suite on a developer’s own machine;
- how to add a new case;
- what the data helpers do, the pieces of code that prepare the data a test needs;
- what to do when the suite is red.
A pipeline that stops on red. If a failing suite still lets a change be merged into the main version of your code, it will be ignored on the first busy afternoon and never trusted again. So the pipeline should refuse the merge until the failure has been looked at, and someone on your side should be the one who decides whether the test or the product is wrong.
What keeps running once the studio has gone
The running of the suite does not wait on the studio. Your pipeline runs it on every push, without anyone remembering to, and the suite is yours, to change as your product changes.
What the studio still does after handover is narrow. The package includes two weeks of fixes after handover; beyond that, the studio’s part is the support arrangement in the last row of the table below, and only if you buy it.
For a phone app, the same pipeline runs the suite against a real device or emulator, a program that imitates a phone on a computer. Writing that suite is a separate kind of work, because testing a mobile app is not testing a website, and it is worth knowing which kind you are buying before anyone writes the first test.
The honest options if nobody will own it
Sometimes there is no one: the team is two people, both busy, and there will not be a person for this. That is a legitimate position, and the last two rows of the table are its two answers. A critical path, in the second row, is one thing a customer does that your business cannot afford to have break, such as paying.
Who keeps it alive | What it needs from you | When it fits | What it costs you |
|---|---|---|---|
A developer on your side | The three handover items above | A team with someone who changes the code | That person’s time |
Your team, with a smaller suite | Fewer critical paths than the package’s twelve to fifteen | A team with nobody to spare for the suite | A rewrite now and then, cheaper than upkeep |
The studio, keeping it current as the product changes | Buying the support arrangement | A product that changes weekly | Priced separately |
If your product does not change weekly, the support arrangement is worth refusing, and that includes ours.
One count that shows who owns the suite
Whichever row you choose, one measure holds any supplier to account, the studio included: three months after handover, are there tests in the repository that the supplier did not write? If not, the wrong thing was built.
It is the measure we apply to our own automated testing services, because a suite that only its authors add to is still someone else’s work, and that is where the slide in the first section begins.
So, when that day comes, open your repository and count the tests in it that the supplier did not write.
