I've got a VS2015 C++ project and thousands tests written using googletest/googlemock and packed into a single executable file.
How can I know which tests and test cases cover a particular function?
For example, my test pack consists of TestSuite0, TestSuite1, TestSuite2, and each test suite contains a number of tests - Test0, Test2, Test3, etc. All I want to know is which tests cover the MyFunc() function. I want to run all the tests and get something like:
Function MyFunc() is covered by:
TestSuite0.Test3
TestSuite0.Test8
TestSuite1.Test0
TestSuite1.Test2
TestSuite2.Test345
Is there any trick to get this with VS2015 and/or gtest?