google / google/googletest

Add verbose on flag for passing assertions

Open
#3,474 4 comments 5 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?**

This feature exist for gmock with flag --gmock_verbose=LEVEL where level of verbosing can be defined. But there nothing like this for gtest.

**Why do we need this feature?**

In ASPICE standard there is need to provide test report with extended log with full information of values used during tests even if tests passes.

**Describe the proposal**

--gtest_verbose=LEVEL

info: gTest will print all informational messages, warnings, and errors (most verbose). At this setting, gTest will also log any calls to the ASSERT_*/EXPECT_* macros.
warning: gGock will print both warnings and errors (less verbose); This is the default.
error: gTest will print errors only (least verbose).

Output of this verbose should be also added to xml report.

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

No

Contributor guide

Open the contributing guide

Research direction

Start by comparing the proposed --gtest_verbose=LEVEL behavior with gMock's existing --gmock_verbose flag and then trace how GoogleTest writes its XML report. Done means defining the verbosity levels, logging assertion calls for passing tests at the requested level, and including the extended output in the XML report.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.