google / google/googletest

Easily parsable test list

Open
#3,822 6 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
C++
Stars
39.5k
Forks
10.9k
Avg merge
6d 13h
Merged PRs (30d)
1

Description

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

Open the contributing guide

Research direction

Start by tracing the --gtest_list_tests entry point and its current suite-and-test output. Determine how an option for fully qualified names should be exposed, then verify that the output lists each test as TestSuite.Test on its own line while preserving the existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.