Re:How to write unit tests in C++ relying on non-code files?
by dieortin on Friday February 23, 2024 @02:34PM
(#39485103)
This is a problem that Bazel (https://bazel.build) solves in a very convenient way. You can just keep using the paths relative to the repository root, and as long as you properly declare your test needs that file it will access it without problems. Or you can use the runfile libraries to access them too.
[ Parent
| on HN ]
There are no comments on this comment yet.