AI end-to-end testing

AI end-to-end tests, without a model in CI

AI makes end-to-end tests easy to write and hard to trust: a model that decides at run time can pass today and fail tomorrow on the same code. Flows use the model where it helps, to write and repair tests, and keep it out of CI, which replays recorded actions exactly.

Side by side

AspectModel at run timeFlows
What CI runsA model deciding each stepRecorded actions, replayed exactly
When the app changesThe model may adapt silentlyStrict replay fails with a diff; a new recording is proposed for review
Cost per CI runModel calls on every runNo model calls in strict mode
AssertionsThe model's judgementExact assertions that a passing check must come with

What BareCI does about it

The accessibility tree first

The model reads the page's accessibility tree and asks for a screenshot only when the tree is not enough, which is cheaper and steadier than pixels.

Recordings in your repository

Recordings are plain JSON in .bareci/flows/, reviewed and versioned with the code they test.

Against the real preview

Flows run against the pull request's preview, so the change is tested as deployed.

Questions

What happens when a flow drifts?

In CI the flow fails with the recorded line, the problem and the page as it is now. A BareCI run can re-record the step and propose the new recording as a patch; nothing is changed without review.