Google test: Can I query the name of the test fixture? Google test: Can I query the name of the test fixture? xml xml

Google test: Can I query the name of the test fixture?


You can get a test name using TestInfo class:

::testing::UnitTest::GetInstance()->current_test_info()->name()

You can find more details here