Adding Tests or Test Data
  • 05 Dec 2022
  • Dark
    Light
  • PDF

Adding Tests or Test Data

  • Dark
    Light
  • PDF

Article summary

Do not modify anything above the marker or it will be lost when migrating the adapter.

  • You can modify existing method tests by:
    • Adding additional asserts.
    • Adding data to send on the requests.
  • You can also add new tests.
    • You can test additional errors using test double.
    • You can use additional mock data to test errors as well.
    • If you add calls to the adapter manually, you should add tests to the Unit and Integration test files so that those methods can be tested properly.

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.