Each change runs only the tests it affects.

Cofactor leaves out the tests that have nothing to do with the change. Pull requests finish sooner and cost less.

Trusted by teams at

It picks the tests from the change

A pull request isn’t held up by tests that have nothing to do with it. You can also choose what runs yourself, by area, by spec file or by a pattern in the title.

acme/web · Pull request #482
Changed files
src/billing/invoice.ts+24 −6
src/billing/discount.ts+12 −0
src/billing/invoice.test.ts+18 −2
12 of 1,000 tests selected
Discount applied to an invoiceselected
Invoice total updates after editselected
Invoice PDF downloadsselected
Sign in as a memberskipped
Invite a teammateskipped
Change plan to Scaleskipped
90% faster
Pull requests run only the tests they affect
90% lower cost
You don’t pay for tests that can’t fail

Your agent runs just the tests it needs

While it builds, your agent runs the tests it picks on its own copy of your app. After a run, you can rerun only the tests that failed, flaked or were skipped.

Coding agent · acme/web
SamInvoices show the wrong total when a discount is applied. Can you fix it?
AgentI changed the total calculation in invoice.ts. Syncing it to my copy and running the invoice test.
$ cofactor sandbox sync 3f9a21c4↻ Synced 2 files in 4.2s$ cofactor workflow run invoice-discount --sandbox 3f9a21c4✓ passed invoice-discount 11s
AgentThe test passed on my copy. A 10% discount now gives $90.00 on a $100.00 invoice.

Common questions

Can I still run the whole suite?

Yes. You can run everything, a named suite or a set of tags whenever you want.

Can I run tests from a pull request?

Yes. You can run a test on a pull request’s preview and attach the passing result to the pull request as proof.

How are tests identified?

By source, file, project and title path. Renaming a test makes a new test, and the old one keeps its history.

Get started

Have a more complicated setup, or questions? Talk to the team