Software testing is something that you do to make sure that your code or application does what you want it to do. There are several rules that you should always remember when writing your tests:
- Your test should resemble the way it is going to be used
- You should write your tests from user’s perspective
- Avoid nesting tests
- Write tests in isolation
Testing Coverage
Mocking
Using Database for testing