Add option to warn when no tests ran

Closes #1158
This commit is contained in:
dvirtz
2018-02-09 01:31:19 +02:00
committed by Martin Hořeňovský
parent 7cbd0b587a
commit 355b3f9952
8 changed files with 51 additions and 8 deletions

View File

@@ -25,7 +25,8 @@ namespace Catch {
struct WarnAbout { enum What {
Nothing = 0x00,
NoAssertions = 0x01
NoAssertions = 0x01,
NoTests = 0x02
}; };
struct ShowDurations { enum OrNot {
@@ -62,6 +63,7 @@ namespace Catch {
virtual bool includeSuccessfulResults() const = 0;
virtual bool shouldDebugBreak() const = 0;
virtual bool warnAboutMissingAssertions() const = 0;
virtual bool warnAboutNoTests() const = 0;
virtual int abortAfter() const = 0;
virtual bool showInvisibles() const = 0;
virtual ShowDurations::OrNot showDurations() const = 0;