Get Unit Test coverage in a specific period


We would like to get the percentage of unit test coverage of an application for the rules added in a specific period of time.

Can you please advice how we can get this number ?



***Edited by Moderator Marissa to update platform capability tags****


Keep up to date on this post and subscribe to comments

August 29, 2019 - 10:20am

To get this information, generate the Test coverage as you generally do. Open the generated test coverage report which by default shows for all the rules in the app. Use the field "Rules updated after" to filter out the rules and view the stats for a specified period starting from the date mentioned in the field to the current date (report generated date). It would show the list of rules covered and uncovered from the ones updated after that particular date.

August 29, 2019 - 11:19am
Response to VamshiKrishnaDawalji


How do we generate the Test coverage ?

We have many unit test on our application but we can see no data under the test coverage section.



August 30, 2019 - 6:44am

You need to click on "Start new session" in test coverage landing page and then go and execute all your tests, come back and stop the test coverage session. You will be able to see the generated test coverage report.

You can generate this report at application level & user level (As you see 2 tabs). The metrics generated by application level report appear in application quality dashboard. Also, application level test coverage report can be generated across the sessions (multiple users can do testing between the start & stop of test coverage session) and a consolidated report would be generated. For user session, this is not possible as it applies to a single session.