CControxity Docs
GuidesReferenceHTTP APIOpen Controxity
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 --noEmit

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