catchorg / catchorg/Catch2

Output a list of all scenarios

Open
#2,250 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**Description**
I would like to output all the scenarios into a file, no matter the success or failure. I would like to use this output to give it to the users of my code so that they can evaluate all the scenarios and provide feedback if any scenario was missed.

The output should include all texts in all the SCENARIO, GIVEN, WHEN, THEN descriptions nicely formatted so that even non-programmers could read it.

```
Scenario: Something is inside
Given: Somethins is inside something else
And given: Something is not green
When: Something happens
And when: Something else happens
Then: Disaster

Scenario: Something is outside
Given: Somethins is outside something else
And given: Something is not green
When: Something happens
And when: Something else happens
Then: Disaster

.....
```

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named in the issue. Start by locating Catch2's scenario reporting and output paths, then determine how the requested file output should be exposed and formatted. Done means every scenario and its GIVEN, WHEN, and THEN text is included in a readable output regardless of success or failure.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.