Catch2 icon indicating copy to clipboard operation
Catch2 copied to clipboard

Print relative paths instead of absolute path

Open nandanvasudevan opened this issue 4 years ago • 2 comments

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.

nandanvasudevan avatar Oct 01 '21 10:10 nandanvasudevan

I agree with this. It makes the console output more readable.

aminya avatar Nov 26 '21 23:11 aminya

I can give it a shot if someone would guide me on where or how to begin.

nandanvasudevan avatar Dec 26 '21 13:12 nandanvasudevan