how test coverage works code example
Example 1: good test coverage
There are many techniques I use to make my test coverage better
-In my project we track test coverage with xray
-As a team we first focus on each acceptence criteria making
sure all have been covered
-Depending on time I have and also priority and business demand
We add negative scenarios
-When story is done if needed end to end scenarios are added
Also lastly we do reviews with peer testers and
at the end we review and present as a team. This helps me
to get best test coverage
Example 2: test coverage techniques
1-Statement Coverage:
It verifies that each line of source
code has been executed and tested
2-Decision Coverage: It ensures that
every decision in the source code is executed and tested
3-Path Coverage: It ensures that every possible
route through a given part of the
code is executed and tested