boostorg / boostorg/test

feature request: control output format of source location based on compiler used

Open
#289 1 comment 0 reactions 1 assignee Claimed by @raffienficiaud View on GitHub
Dominant language
C++
Stars
213
Forks
149
Avg merge
18h 17m
Merged PRs (30d)
2

Description

Currently, in HRF format, the source location is printed as `file.ext(lineno):`.
For example

```
./.././detail/test.cpp(764): error in "test_name": check a == b has failed [3 != 6]
```

It would be good for automated tools to have the alternative to print the source location in format more similar to source locations printed in clang and gcc (also Catch2), i.e. `file.ext:lineno`.
For example the modified format out would print:

```
./.././detail/test.cpp:764: error in "test_name": check a == b has failed [3 != 6]
```

**Would it be possible to add this options to the format output?**

(I tried editing the strings in `/usr/include/boost/test/minimal.hpp` and in `test/impl/compiler_log_formatter.ipp:print_prefix` but that didn't do it.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.