catchorg / catchorg/Catch2

Print only TEST_CASE/SCENARIO name on success

Open
#1,795 1 comment 0 reactions 0 assignees View on GitHub
Query Resolved - pending review
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**Description**
Hello! Big fan of Catch. I have a fairly exhaustive test suite with relatively many `GIVEN`/`WHEN`/`THEN` sections in few `SCENARIO`s. I'd like to use the `-s`/`--success` flag to get an idea of the progress my test is making, but it just makes way too much output. Is there a way to only print out the name of each scenario once all the tests within pass?

**Additional Information**

I get something close with `./tests -d yes | cut -c 10- | grep -F Scenario | uniq`, but it would be much more efficient if something like this were implemented in Catch itself.

```
Scenario: option_files save their data when destroyed.
Scenario: option_files read data when created.
Scenario: option_file is nothrow move constructible and assignable.
Scenario: User_options reads from a file when created
Scenario: User_options saves changes back to its file
Scenario: An empty user_options writes to a file when destroyed
Scenario: Get and set options manage string references correctly.
[...]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.