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
| Aspect | Model at run time | Flows |
|---|---|---|
| What CI runs | A model deciding each step | Recorded actions, replayed exactly |
| When the app changes | The model may adapt silently | Strict replay fails with a diff; a new recording is proposed for review |
| Cost per CI run | Model calls on every run | No model calls in strict mode |
| Assertions | The model's judgement | Exact 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.
The modules involved
End-to-end tests written as goals, replayed exactly
Flows are end-to-end tests written as user goals in plain language. A model drives a real browser once; CI replays the recorded actions with no model call.
05 / PreviewsEvery change running at its own URL
A job keeps its machine and serves the app at its own URL until its TTL, the next push or the merge. Flows test it there and the Gate links it.
07 / GateOne answer to “is this ready to merge?”
BareCI: ready is one GitHub check per pull request, green only when every enabled module agrees, listing each reason it is not and the fix.
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.