catchorg / catchorg/Catch2

`CHECK_NOFAIL` does not increment assertions count shown at end of test run

Open
#2,385 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

**Describe the bug**
`CHECK_NOFAIL` does not increment assertions count shown at end of test run

**Expected behavior**
The assertion count shown at the end of a test run should be exactly the same for `CHECK` and `CHECK_NOFAIL`

**Reproduction steps**

1. Godbolt https://godbolt.org/z/vTar1jr1s

**Result**

`All tests passed (2 assertions in 1 test case)`

**Expected**

`All tests passed (3 assertions in 1 test case)`

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.