8 Testing
Scott Erickson edited this page 2016-09-20 15:07:37 -07:00

Run server tests

  • Run ./bin/coco-mongodb in one terminal
  • Run npm run jasmine in another terminal

To run tests in just one file, run npm run jasmine spec/server/path/to/some.spec.coffee.

Run client tests

Run smoke tests (on dev server)

  • Make sure to start your dev environment first, and that it includes the database dump.
  • Run npm run smoke-local

TravisCI

The CodeCombat GitHub account is hooked up to TravisCI, which runs all server and client side tests for each commit and pull request. You can see results of tests here.