Skip to content

Testing Process

Alchemist edited this page Sep 8, 2018 · 1 revision

Testing Unfetter Discover

Unfetter Discover has unit tests in the following project. The team is in the works to have them under a Jenkins CI.

To run the test manually

For the API, we have Swagger Unit test,

cd unfetter-discover/unfetter-store/unfetter-discover-api
npm run test

cd unfetter-discover/unfetter-store/unfetter-ctf-ingest
npm run test

For the UI, we have Angular Jasmine Unit tests, run with Karma. The tests are written in the .spec.ts files. Simply add a new file with this convention to have your tests picked up.

cd unfetter-discover/unfetter-ui
npm run test

You should see output on the command line as well as Chrome should open a new window.