Using Test Runner

Prev Next

There is a utility in the adapters called testRunner that can be used to run any tests.

node utils/testRunner.js

With this utility, you can run unit tests, standalone integration tests, and true integration tests. A true integration test will ask you for credentials. When this happens, the test script itself will edit, run the integration tests, and then change the test script back.

  • Benefits:
    • You do not have to know how to edit an integration test script to run an integration test.
    • Integration tests are not stored in a repository with credentials in them.
  • Disadvantage:
    • It is harder to debug failing tests due to how the console and logs appear when running the tests.