Home/Automated QAbeta
QA after the review — without paying a model to write tests.
A catalog of flows in your repository, composed per PR by Talooner's decider one yes/no question at a time, checked against the text the PR adds, and run in Chromium for every role. A typical PR is tested without a single chat-model token.
A test is a bit string
The decider picks blocks. The scenario builds itself.
Your app already knows its pages, roles and test data, and your catalog knows the actions. For a PR, Talooner's decider answers one narrow yes/no question per part — in one call — and the parts that come back 1 snap into a scenario. What each role may do comes from your guide, not from the code being tested.
PR #212
Managers can refund a paid order
Adds a Refund button on the order page for admins and managers.
- pageon page “order list”?
- pageon page “order”?
- pageon page “payouts”?
- actiontests “refund”?
- actiontests “pay”?
- actiontests “export PDF”?
- dataneeds “paid order 42”?
- rolesguide: admin may?
- rolesguide: manager may?
- rolesguide: customer may?
- rolesguide: guest may?
- checksuccess: I see “Refunded”?
Catalog blocks picked
Scenario
Runs in the preview, per role
- admin…
- manager…
- customer…
- guest…
4 of 4 roles as the guide says: QA passed
How a PR is tested
From a diff to a green check, in six steps
01
Narrow
The PR's changed files are matched against your pages, routes and blocks. A few dozen candidates come out of a big app; files nothing matches are reported as not covered, not guessed at.
02
Decide, bit by bit
Talooner's decider answers one yes/no question per candidate in one call: this page? this block? may this role do it, per your guide? The parts answered yes become the scenario.
03
Answer what stayed unclear
In a pipeline nobody is there to ask. --unclear yes picks exactly one page, the blocks on it, and each role by the decider's lean: a role it leans against is still tested, as denied.
04
Add what the PR shows
The text the PR adds to that page — a heading, a button label, a placeholder — is copied from the diff into one more scenario. The catalog holds the flows; each PR brings its own check.
05
Run in Chromium
Each role signs in through your app's hook, test data is seeded, the page opens, the steps run. Every row of the role matrix is its own test, in a fresh browser.
06
Report facts
qa-facts.json for your rules, a JUnit report so every scenario shows on the PR, and a screenshot of every failure. Not run is never passed.
Why not let a model write the tests?
A good author, a bad tester
It tests the diff against itself
Written from the code it checks, a generated test asserts what the code does — the bug becomes the expectation. The expectation has to come from somewhere else: the guide, the catalog, a person.
Different tests every run
Same code, new scenarios on every push: green, red, green. A gate that changes its mind can't hold a merge.
It guesses what isn't in the diff
Button labels, roles, test data and routes aren't in a patch, so they get invented — and tests fail on the test, not the code.
It costs every push, and keeps nothing
Reading the app and writing tests again on every push, then throwing them away: no regression suite ever grows.
So no step is ever written by a model. The decider only answers yes or no; the checks from a PR are copied from its diff. An LLM still helps — to draft the first catalog during onboarding, and to propose a part the catalog doesn't have yet. Once, and a person approves it. Never on every PR.
The catalog
Lives in your repo, reads like a checklist
Logic and edge cases stay in your unit tests. The catalog covers what only a browser can check: flows across pages, and who may see what. Roles, pages and test data come from your app, so the only hand-written part is a block — one action and the check that proves it worked.
.talooner/qa/
config.yaml settings
blocks/<area>/*.feature an action + its checktime_budget: 10m # then "not run"
smoke: [list orders] # every PR runs it
guide: docs/permissions.md # who may do what
login: new_user_session # where "may not" lands# .talooner/qa/blocks/orders/refund.feature
@page:order @data:order:paid
Block: refund a paid order
When I click "Refund"
Then I see "Refunded"- No step definitions. Open a page, click, fill in, see, don't see, am on — the steps are built into Talooner's runner, the same for Rails, Django, Spring or Go. Elements are found by their visible text and role, not by CSS.
- Every block needs a check. A block without a
Thenwould pass by doing nothing, so the catalog refuses it.
@qa:composed @page:order
Feature: QA for this change
Scenario Outline: refund a paid order
Given I am "<role>"
And "order:paid" exists
When I open "order" "order:paid"
And I click "Refund"
Then I see "Refunded"
Examples:
| role |
| orders:admin |
| orders:manager |
Scenario Outline: refund a paid order, not allowed
Given I am "<role>"
And "order:paid" exists
When I open "order" "order:paid"
Then I don't see "Refund"
Examples:
| role |
| orders:customer |
Scenario: refund a paid order, not allowed for a guest
Given "order:paid" exists
When I open "order" "order:paid"
Then I am on "login"What a PR adding refunds gets. One block, composed for every role: those the guide allows refund, a customer must not even see the button, and a guest lands on the login page. “The refund button is now visible to customers” is exactly what a reviewer misses in a 200-file PR.
Checks from the diff
The catalog holds the flows. Each PR brings its own check.
A block proves a flow works; it can't know what this PR changed. So once the scenario is composed, the text the PR adds to that page is copied from its diff into one more scenario. Nobody writes a block for a new heading or a renamed button — and no model writes it either.
diff --git a/app/views/orders/show.html.erb b/app/views/orders/show.html.erb
@@ -12,3 +12,4 @@
<%= button_to "Refund", refund_order_path(@order) %>
+ <p class="hint">Refunds reach the card in 5 days</p>
+ <p><%= @order.refunded_at %></p> Scenario Outline: the change shows on "order"
Given I am "<role>"
And "order:paid" exists
When I open "order" "order:paid"
Then I see "Refunds reach the card in 5 days"
Examples:
| role |
| orders:admin |
| orders:manager |- Takentag text, placeholder, aria-label, title and alt, and the label a link_to, button_to, submit or label shows — from added lines of the view files that belong to the composed page
- Left outtemplate code and interpolation (<%= @order.refunded_at %>), text that only moved, models and controllers, other pages' files
- Matchedby what a person reads: visible text, a placeholder, a field's label, a button's or link's name
- Boundedat most five strings, for the roles that may; a role that may not is already covered by the block's own denied scenario
What your app provides
A small test-only API, not a hundred step definitions
Your app tells QA what exists — roles, pages, test data — and lets it act: sign in as a role, seed a record, reset, flip a flag, check what the UI can't show. On in preview and test only, behind a token: /__qa/login signs in as anyone, so it answers nothing without one. On Rails, one gem serves all of it.
GET /__qa/rolesthe roles QA may be, by areaGET /__qa/pagespage names and routes, from your routerGET /__qa/seedsevery test record it can make, e.g. order:paidPOST /__qa/loginbecome a role: a session cookie for a test userPOST /__qa/seedmake an order:paid exist, and say its idPOST /__qa/resetback to a clean statePOST /__qa/flagturn a feature flag on or offGET /__qa/checkwhat the UI can't show: a Payment row, a sent email
Your stack
On Rails, it's one gem
The talooner-qa-rails engine serves every hook. Pages come from your router and test data from your factories, so the only thing you write is who your roles are. More frameworks are coming next.
# Gemfile: only where a preview or test runs
gem "talooner-qa-rails", github: "Talooner/talooner-qa-rails",
group: %i[test preview]
# config/routes.rb
mount TaloonerQa::Engine, at: "/__qa" if TaloonerQa.enabled?
# config/initializers/talooner_qa.rb
TaloonerQa.configure do |qa|
qa.roles { { orders: %w[customer manager admin] } }
qa.user_for { |roles| QaUsers.with_roles(roles) }
qa.seeds_from_factory_bot # order, order:paid, …
endRailsavailable
talooner-qa-rails: pages from your router, seeds from your FactoryBot factories and traits, sign-in through Devise or your own. Rails 7.2+, Ruby 3.4+.
talooner-qa-rails on GitHub →Next.jscoming next
route handlers under /__qa, pages from the app router
Gocoming next
an http.Handler for net/http, chi and echo
Elixir / Phoenixcoming next
a Plug, pages from the Phoenix router, seeds from ExMachina
Anything elsetoday
the eight hooks, written once against the contract; onboarding can draft them
In your pipeline
Two jobs, your app as a service
The PR's own image runs next to its database inside the job, so there is no preview environment to keep alive. One job composes in the small Talooner image; the next runs the scenario in the image that carries Chromium. Every scenario shows in the PR's test report, with a screenshot when one fails.
Name the app's service anything but app: Chrome forces https on the .app domain.
qa: # compose the scenario
image: ghcr.io/talooner/talooner-runner
services: [postgres, { name: $APP_IMAGE, alias: web }]
script:
- talooner-step qa --out qa-out --unclear yes
qa-run: # run it in Chromium
image: ghcr.io/talooner/talooner-qa
needs: [qa]
services: [postgres, { name: $APP_IMAGE, alias: web }]
script:
- talooner-qa run --fail
artifacts:
reports: { junit: qa-out/junit.xml }Which scenarios a PR runs
The PR pays for what it touches, not for the catalog
01
Narrowed by name today
Changed paths meet page names, routes and block tags. Smoke blocks run on every PR. What nothing matches is listed as not covered.
02
Answers are cached by content
A composition is keyed on the diff without line numbers, never on the commit: a rebase that keeps the patch is answered without a model call.
03
Only the roles that matter
Roles come from your app's hook and what each may do from your guide, read from the base branch — a PR can't rewrite what it's judged against.
04
Next: measured, not guessed
Each scenario runs once with coverage or a request log, so a PR runs the scenarios that execute a file it changes, and an unchanged scenario keeps its last result.
05
Next: the full catalog nightly
Everything on main while nobody waits: it refreshes the map and catches what a selection missed.
NOTHING DEFAULTS TO PASSING
Not run is not passed
A scenario cut by the time budget is reported not run. A step the runner doesn't know fails. A changed file no scenario covers is listed, and your rules decide how serious that is.
Results are facts
Rules decide, as with every other check
The run writes qa.* facts — whether it ran, scenarios passed out of total, the failed and not-run ones, files no scenario covers — and your rules gate on them. Until the gate reads them, talooner-qa run --fail fails the job on a failed or not-run scenario.
| Step | Model | Cost per PR |
|---|---|---|
| Narrow the candidates | none | 0 |
| Compose the scenario | Talooner decider, one call of yes/no bits | < $0.005 |
| Checks from the diff | none — copied from the diff | 0 |
| Run in Chromium and check | none — fixed steps | 0 |
| Add a part the catalog doesn't have | an LLM, once, approved by a person | once per new part |
// The run writes qa-facts.json; the review's gate reads it into qa.*
// facts. A scenario that did not run counts against the total, never for it.
rule "Failed QA scenarios hold the merge" {
for records where type == "pr"
and attr "qa.status" == "ran"
and attr "qa.scenarios_passed" < attr "qa.scenarios_total"
do block "pr.merge"
do comment "pr" "QA: {attr.qa.failed_scenarios}"
priority HIGH
}
// Money and access must be covered: a change no scenario runs through
// goes to a human instead of passing quietly.
rule "Payments change with no QA scenario" {
for records where type == "pr"
and attr "qa.not_covered" contains "app/payments/"
do require "review.payments"
do comment "pr" "No QA scenario runs through: {attr.qa.not_covered}"
}Automated QA is in beta on the Team plan and up.
It builds on the decision-model review; see also security checks.