Every pull request is tested before it merges.

A bug found after merge is slow to trace back. Cofactor tests each pull request on copies of your app built from that change, and shows the result on the pull request.

Trusted by teams at

Each pull request gets its own copy of your app

Cofactor builds a live copy from the change, with logins ready, and links it from the pull request. Each test runs on its own private copy, so the preview stays untouched.

See Preview environments →
acme/web · Pull request #482
Ccofactor deployed to preview

Preview ready

built from3b7e9c1
Preview page signed-in members only
sign in asowner@example.test
password••••••••••••
90% faster
Pull requests that run only the tests they affect
90% lower cost
You don’t pay to run tests that can’t fail

Only the tests the change affects run

A pull request isn’t held up by tests that have nothing to do with it. You can still run the whole suite when you want to.

See Test selection →
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

It can’t merge until the tests pass

Cofactor posts the result on the pull request, and your CI can block the merge on it. If the tests didn’t all run, that counts as a fail.

See CI & release gates →
acme/web · Pull request #482
Ccofactor commented now

Cofactor proved this change

✓Discount applied to an invoice11 s
✓Invoice total updates after edit9 s

Added to the regression suite on merge.

Common questions

Does it work with GitHub?

Yes. Pull request previews are for GitHub repositories.

Does it run my whole suite?

It can run the whole suite, or only the tests a change affects.

Which CI systems does it work with?

Any of them. Cofactor is a command with an exit code, so if your pipeline can run a command, it can run Cofactor.

Get started

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