how to measure test coverage? code example

Example 1: how to achieve 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: how to get 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