googletest
googletest copied to clipboard
--gtest_list_tests prints incorrect test names
Describe the issue
Output from testsuite --gtest_list_tests is structured by test suites, listing test names with indentation. This makes it impossible to compose a filter for the option --gtest_filter, because the precise test name is never printed, whereas incorrect (and therefore useless) test names are printed instead. Correct behavior would print the exact test name adjacent to each test, in the precise format that will match that test when using option --gtest_filter. This kind of problem is widely known as the "needle in a haystack design error" because the design forces users into an unproductive trial-and-error game of guessing an internal representation that cannot be discovered any easier way.
Steps to reproduce the problem
Invoke testsuite --gtest_list_tests on any gtest suite.
What version of GoogleTest are you using?
any
What operating system and version are you using?
any
What compiler and version are you using?
any
What build system are you using?
any
Additional context
No response