# Test before you merge

> 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.

## Every pull request is tested before it merges.

[Join the waitlist](https://runcofactor.com/#waitlist). We onboard two companies a week.

Trusted by teams at Fintary, Colvin Run, AirBills, Dragonfly, SixMap, Flip, Ask Safely.

## 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](https://runcofactor.com/product/preview-environments.md)

- 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](https://runcofactor.com/product/test-selection.md)

## 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](https://runcofactor.com/product/ci.md)

## Common questions

### Does it work with GitHub?

Yes. Pull request previews are for GitHub repositories.

Learn more: [How previews work](https://runcofactor.com/product/preview-environments.md)

### Does it run my whole suite?

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

Learn more: [Only the tests a change touches](https://runcofactor.com/product/test-selection.md)

### 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.

Learn more: [The release gate in CI](https://runcofactor.com/product/ci.md)

## Get started

[Join the waitlist](https://runcofactor.com/#waitlist). We onboard two companies a week.

Have a more complicated setup, or questions? [Talk to the team](https://runcofactor.com/book-a-meeting)