Test centre
The Test centre is where a flow is tested before anything depends on it. It holds three things: the Fixtures a test runs over, the tests themselves, and the template tests that check what a run produces.
A test names a flow, the records to run it over, and what should be true afterwards. Each expectation is a condition and the outcome it should produce. A test passes or fails, and a failure names the record that caused it.
A test differs from an Experiment: a test checks an expectation, while an Experiment shows the differences between two versions. Use a test for what must stay true, and an Experiment for a change you are still deciding about.
Results accumulate
Section titled “Results accumulate”Each run of a test is kept, in order, so you can see when a test started failing. The full trace of any run is available from its result.
A run over many records is grouped as one batch, so results are tied to the run that produced them even when several runs are in progress.
Turning a policy counterexample into a test
Section titled “Turning a policy counterexample into a test”When a policy check finds a case where a flow does not do what a policy requires, that case can be turned into a test in one step: its conditions become the test’s conditions, and the outcome the policy expected becomes the expectation.
This means a problem found once is tested for from then on.
Template tests
Section titled “Template tests”For a flow that produces a document, you also need to check the document looks right.
Template tests render a template against known values, as the document or as a PDF, so a change to a layout or style can be checked against real output.
What belongs here and what does not
Section titled “What belongs here and what does not”Nothing in the Test centre touches a live record.
For a list your organisation maintains, use a Register. To compare two published versions over a set of records, use an Experiment, in Analyse.