google / google/googletest

can output log only for failed case(s)

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

Description

**Does the feature exist in the most recent commit?**

no

**Why do we need this feature?**

if there are hundreds/thousands test cases while only 1 failed, it's better the log only contains the failed one - smaller log size, easier to focus on failure info.

**Describe the proposal**

like this:
![image](https://user-images.githubusercontent.com/100677967/171087752-ef113903-3470-45c1-8e12-da97cebd85a6.png)

It uses SmartLog to contain log for each case, discarding if case passed, dumping to screen if case failed.

**Is the feature specific to an operating system, compiler, or build system version?**

no

Contributor guide

Open the contributing guide

Research direction

The proposal describes retaining per-case SmartLog output and displaying it only for failed cases, but names no files, tests, or entry points. Start by locating the test logging and SmartLog implementation, then determine how failed-case output is currently emitted. Done means passed-case logs are discarded while failed-case logs remain available in the output.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.