Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 775 Bytes

tests-development.md

File metadata and controls

26 lines (18 loc) · 775 Bytes

Writing tests

When writing tests please follow the same approach as we have taken in the other tests. There are many ways to test software and we have chosen ours, so please appreciate that.

The main tests are provided in test folder. Before executing them, first make sure that the Keycloak server was started to run all the integration tests:

npm run server:start

Running all the tests:

npm test

Running specific tests:

tape test/grant-manager-spec.js

When developing your test depending on the feature or enhancement you are testing you may find it best to add to an existing test, or to write a test from scratch. For the latter, we recommend finding another test that is close to what you need and use that as a basis.