Testing

There are two types of tests, integration tests and unit tests.

Unit Tests

To run unit tests, run ./tools test unit.

Integration Tests

Integration tests use a "headless" browser to run

Run ./tools test integration to run the test suite with integrated tests. Run ./tools test all to run unit tests and integration tests.

This runs simulated tests using headless browsers running concurrent editing operation. You should install a WebDriver implementation such as geckodriver:

  • macOS: brew install geckodriver
  • Ubuntu: npm install -g geckodriver
  • Windows: choco install selenium-gecko-driver