coverage based testing code example

Example 1: 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: statement coverage testing

The benefit of statement coverage metric is that

a) It does not require processing source
code and can be applied directly to object code

b) Bugs are distributed evenly through 
the code, due to which percentage of executable 
statements covered reflects the
percentage of faults discovered

Tags:

Misc Example