What should we test?
This is a great question!
It is easy to say that you should test every possible scenario in your application. However, we need to consider the following:
- How do you define “every scenario”?
- Can you really test “every scenario”? How many tests does that mean?
In a nutshell, your suite of tests should cover both of the following:
- The happy path: This means testing the situation in which the required input for your application is provided and is in the expected format
- The unhappy path: Here, we test the behavior of the application under unexpected circumstances, such as input in the wrong format, user errors, network issues (when relying on external dependencies), the user canceling a task, and so on
Once again, this is not a book about software testing, but I would like to give you some guidance on what to test in different situations:
Input parameters... |