I have a gradle Java web project. I am running some unit test /integration test/ api test/ui test against the application. I am using testng/junit type of tests. Is it possible to identify which test class covered which part of code.
The objective is to identify the tests which can be run to check the particular piece of code change. For eg for there is a Employee class, and three different test class T1, T2 and T3 and when I run those test class, somewhere in reports it is able to tell that Employee class code is covered by Test class T1 and T2 so that in future if there is a change in employee class in future, we can run T1 and T2.
If it is possible, can anyone guide how to configure in gradle or Jenkins.