catchorg / catchorg/Catch2

Print relative paths instead of absolute path

Open
#2,295 2 comments 2 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**
The console output for catch2 is really messy with absolute paths.
An option to get the path printed as relative path would be amazing!

**Additional context**
Current output
```
/home/nandanv/code/sources/.../test/src/sensors/test_temperatureSensor.cpp:99
```
I suggest
```
test/src/sensors/test_temperatureSensor.cpp:99
```
The user may specify what portion of the path should be truncated if required. I think doxygen does something similar.

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.