Using Test Runner
  • 05 Dec 2022
  • Dark
    Light
  • PDF

Using Test Runner

  • Dark
    Light
  • PDF

Article summary

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.

Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.