How we test a data platform: the acceptance comes first
DataAstra
Here is a scenario, in the words it was approved in:
A person who reads a table whose rows are filtered for her publishes a pipeline over it. The publish is held with a proposal; nothing is deployed and nothing runs. A second person who may decide reads that the rows are filtered and the policy's name, and approves. Her publish then deploys. She is served no policy name and no table in her answer.
Before a line of product code was written for it, that paragraph was a script. The script signed in as the people the scenario names, on a running copy of the platform, did what they would do, and checked what they would see. It failed, because the behaviour did not exist. Then the build began.
That order is the whole method.
Four roles, kept apart
Every piece of work on the platform runs as a slice with four roles:
- The owner states the outcome in one sentence, from the user's side, and approves the scenarios.
- The acceptance author writes those scenarios as an executable acceptance test, as the user would act, and runs it red. The author never writes product code for the same slice.
- The builder writes integration and unit tests, each red first, then the smallest change that turns them green, inside one module. The builder never edits the acceptance test.
- The reviewer reads changes that touch security, a contract or more than one module, and reports each finding with a concrete failure scenario. The reviewer never patches.
The separation is the point. A builder who writes their own acceptance test writes the test their code passes. An author who never sees the code writes the test the user needs.
Red for the right reason
An acceptance test that fails because the setup broke proves nothing. So the first run is read: it must fail for the missing behaviour, and the failure is recorded with the command that produced it. A bug starts the same way, as a reproduction that fails as the person who reported it. If it cannot be made to fail, nothing is built.
The expected answers come from outside the code: the owner's words, an approved design, a published specification, or golden files written by hand. Never from what the implementation happens to return today.
Real stack, real people
Acceptance tests run against a real stack, signed in as the sample organisation's people: a data engineer, a steward, a person who holds change management. Integration tests drive a real compile, a real run or a real database, never hand-built objects shaped like them. A fake at an interface hides the wire, and the wire is where a platform breaks.
Refusals are tested as carefully as successes, because a data platform's promises are mostly about what does not happen. A person who cannot read a table, and a request for a table that does not exist, must get answers that are equal value by value: same status, same body, same side effects. Otherwise the refusal itself tells them the table is there.
After every end-to-end run, a set of data rules is checked with zero as the bar: no lineage edge from a column to itself, no edge to a column that does not exist, no edge that crosses environments.
A green is reviewed before it counts
A test that goes green on its first run deserves suspicion. So a first green is reviewed before it is recorded, by someone asking one question of each check: would this pass with the product broken? Checks that would are tightened, and the script runs again.
Proven means a fresh birth
Line coverage and test counts are not proof. A capability is called proven when its approved acceptance scenarios pass against a real stack as the right person.
And the stack has to be honest. Our sample organisations, a sample asset manager and a sample retailer we built to prove the platform, are rebuilt from their repositories. A proof runs on an organisation born fresh, not on one that has been running for weeks. A table no run has written yet, a grant the seed never gave, a service a new environment was never born with: these show up on a fresh birth and are hidden by a long-lived one.
The sample organisations are the product's proof, so they stay green. A red on a freshly born organisation is never old work to come back to. It is fixed in the session that finds it. A change that alters what the seed exercises brings the seed along in the same piece of work.
What we do not fix
Building finds things outside the slice: a route that says too much, a check in the wrong place. Those are written down with an impact rating and wait for a decision. They are not fixed on the side.
Why it matters to a buyer
A data platform makes promises that are hard to see: a mask that holds on every path, a change that waits for a second person, an environment that cannot reach another. You cannot check those from a demo. What you can ask is how the vendor knows. Our answer is this method, and the roadmap is where we put what comes next.
See the platform or the use cases.