-
Notifications
You must be signed in to change notification settings - Fork 12
Writing and running tests
Carlos Botelho edited this page Dec 19, 2019
·
2 revisions
This pages describes how to write and run tests in POGS.
Backend tests can be run from maven or the IDE. Just run mvn test
in the repo root.
Frontend tests are run using Karma. You need to install karma:
npm install -g karma
Then you can run the tests with karma start
in the repo root.
You can test all files in the src/main/resources/static/js/lib
directory. Just add a *__tests.js
file with the tests, see src/main/resources/static/js/lib/ot__tests.js
for reference.