Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 757 Bytes

tests-development.md

File metadata and controls

19 lines (12 loc) · 757 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:

./scripts/start-server.sh

Running all the tests:

make tests

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.