google/googletest

Easily parsable test list

Offen

#3.822 geöffnet am 01.05.2022

 (6 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C++ (10.772 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (38.603 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 7T 8h) (1 gemergte PR in 30 T)

Beschreibung

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

Contributor Guide