Skip to main content

Running Tests

Unit testing

To run the unit tests:

$ npm test
$ npm test

To run single unit tests:

$ npm test --single=[nameOfFile] where [nameOfFile] can be a regex
$ npm test --single=[nameOfFile] where [nameOfFile] can be a regex

integration tests

Pactserver

To run integration tests against a pact server the following command can be used:

$ npm test:integration:pactserver
$ npm test:integration:pactserver

devnet

To run integration tests against devnet it requires starting devnet and exposing the pact endpoints at http://localhost:8080 . For more details, see instructions at the Devnet Github repository .

The following command can be used:

$ npm test:integration:devnet
$ npm test:integration:devnet

TODO make Pact server port configurable


Receive important developer updates