catchorg / catchorg/Catch2

JUnit and console reporter discrepency.

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

Description

Hi guys,

I don’t know if this is a bug or not, but I just discovered that there is a discrepancy between how JUnit and console reporters report run test cases.

If I will create a test case that does not have any assertions in it, the test will not be reported by JUnit even though it was run.

For example:

```
TEST_CASE("SomeTest")
{
// Do something here
//CHECK(true);
}
```

This test won't be seen in JUnit file but the console reporter will report it. Shouldn't it be visible in JUnit report as well?

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.