habitica/test/api/v3
2016-04-23 03:08:03 +02:00
..
integration v3: fix ability to join public guild you were already a member of 2016-04-23 03:08:03 +02:00
unit res.respond: allow for thrid parameter (message), refactor shared ops responses and adapt tests 2016-04-21 00:52:03 +02:00
README.md tests: Add readme for v3 tests 2016-01-30 09:28:03 -06:00

How to run tests:

  1. npm test is equivalent to gulp test:api-v3 which will run, in order, gulp lint, gulp test:api-v3:unit and gulp test:api-v3:integration. If one of these fails, the whole npm test command blocks and fails. Each of these commands can also be run as a standalone command.
  2. To run the server and the integrations tests in two different terminals (to better inspect the output in the server) run npm start in one and npm test:api-v3:integration:separate-server in the other