a simple list to thing about when writing a test.
When writing test, the documentation that the API your integrating into only list all the good values that they intend to deliver to you or the other way around.
What I observed from working with my colleague Harmen is this:
- A positive test for happy path
- A negative test
- An empty input
- A malformed data
I might add more example in the future but for now, I’ll try to follow this guideline.