catchorg / catchorg/Catch2

Some way to get the current test case/section path

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

Description

I'm doing some for integrating [RapidCheck](https://github.com/emil-e/rapidcheck) with Catch but I need some way to retrieve a stable (across different builds) but unique identifier for the current section. I.e., I would like to get something `"MyTestCase/MySection/MySubsection"`. I was thinking of making a reporter but I would need to replace any reporter that a user specified.

Any ideas? It doesn't have to be a string, just something stable across builds on different machines. For that reason, I cannot use `__FILE__` because it depends on your build.

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.