How to
Apps with no tests yet
Let the fixer work on an app without tests, honestly labelled, and get real tests when you're ready.
Why tests matter here#
A fix is only called fixed when a test proves it: one that failed before the change passes with it, and nothing that passed before breaks. Without tests, nobody can say a fix fixed anything.
Checks in the meantime#
In controxity.yml, give the checks the app does have, in place of test:. node controxity.js init finds them by itself (TypeScript, ESLint) when it finds no tests (how):
install: npm ci && cd server && npm ci
checks:
- npx tsc --noEmit
- npx expo lint
- cd server && npx tsc --noEmitinstallruns first, in the fixer's container, while it still has the network. Then the network goes off.- Each check runs from the top of the repository. A fix must pass them all.
- A fix that passes is shown as Checks pass, not proven: a typecheck and a linter say nothing broke, not that the problem is gone. It goes on like an unproven fix: a person reads it before it goes further, and it's never merged by itself.
Get real tests#
On the product's Product settings → Tests and code, press Set up tests. The fixer adds a test runner and first tests on a branch of their own, and you review them like any fix. Once they're in, put test: in controxity.yml, and fixes can be proven.
Controxity 1.132.0These pages are in the repository: docs/site