google/googletest

Easily parsable test list

Open

#3822 aperta il 1 mag 2022

Vedi su GitHub
 (6 commenti) (1 reazione) (0 assegnatari)C++ (10.772 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (38.603 star)
Metriche merge PR
 (Merge medio 7g 8h) (1 PR mergiata in 30 g)

Descrizione

Whe using --gtest_list_tests, the list is split into the test suite on one line, and individual test names on separate lines. This makes it harder to parse the output for listing all available tests. Maybe there should be an option to list the tests using their full names, so that instead of this:

TestSuite1.
  Test1
  Test2
TestSuite2.
  Test1

we can get this:

TestSuite1.Test1
TestSuite1.Test2
TestSuite2.Test1

Guida contributor