-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Description
docs/command-line.md says "NoTests // Return non-zero exit code when no test cases were run" but I see a status of zero being returned instead of non-zero
my_bug.cpp:
#include "catch2/catch.hpp"
TEST_CASE("my case", "[foo]") {
SECTION("my section") {
CHECK(1);
}
}
> g++ -o my_bug my_bug.cpp -I ...
> ./my_bug -w NoTests '[x]'
Filters: [x]
No test cases matched '[x]'
===============================================================================
No tests ran
status=0
I expected a non-zero status.
Platform information:
- OS: Linux CentOS 6
- Compiler+version: GCC v7.3.0
- Catch version: v2.9.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels