Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--gtest_list_tests prints incorrect test names #4586

Open
byron-hawkins opened this issue Aug 1, 2024 · 1 comment
Open

--gtest_list_tests prints incorrect test names #4586

byron-hawkins opened this issue Aug 1, 2024 · 1 comment

Comments

@byron-hawkins
Copy link

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

@Mik77751
Copy link

Mik77751 commented Aug 2, 2024

Hi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants