Danny Coates 1a7510070e fixed footer integration test 6 years ago
..
backend e2259ae737 made download count and expiry options server configurable 6 years ago
frontend 97d4f1223f reduce log noise in puppeteer test 6 years ago
integration 1a7510070e fixed footer integration test 6 years ago
.eslintrc.yml c3751c2efc Ignore console statements in test/ directory because yolo 7 years ago
readme.md 18e1609cb3 updated docs 7 years ago
testServer.js 23d629b80b Added webdriverio integration tests 6 years ago
wdio.circleci.conf.js 76de2b29a5 cleaned up integration test flow 6 years ago
wdio.common.conf.js 76de2b29a5 cleaned up integration test flow 6 years ago
wdio.docker.conf.js 76de2b29a5 cleaned up integration test flow 6 years ago
wdio.local.conf.js 76de2b29a5 cleaned up integration test flow 6 years ago
wdio.remote.config.js 76de2b29a5 cleaned up integration test flow 6 years ago
wdio.saucelabs.config.js 76de2b29a5 cleaned up integration test flow 6 years ago

readme.md

Tests

To run all the tests use npm test. This will run the tests and produce a code coverage report at coverage/index.html. The full test suite is run as a hook on each git push. Mocha is our preferred test runner.

Frontend

Unit tests reside in test/frontend/tests.

Frontend tests can be ran in the browser by running npm start and then browsing to http://localhost:8080/test. Doing it this way will watch for changes and rerun the suite automatically.

You can also run them in headless Chrome by using npm run test:frontend. The results will be printed to the console.

Backend

Unit tests reside in test/backend

Backend test can be run with npm run test:backend. Sinon and proxyquire are used for mocking.