- added an undocumented flag to omit the "skipped" part in the output summary - for convenience for the all_features example
- grouped examples by project
- changed names of output from tests
- added source files for some features without examples
diff --git a/examples/all_features/test_output/all_features.alternative_macros.cpp.txt b/examples/all_features/test_output/alternative_macros.cpp.txt
similarity index 73%
rename from examples/all_features/test_output/all_features.alternative_macros.cpp.txt
rename to examples/all_features/test_output/alternative_macros.cpp.txt
index c76c4b0..e20c8f4 100644
--- a/examples/all_features/test_output/all_features.alternative_macros.cpp.txt
+++ b/examples/all_features/test_output/alternative_macros.cpp.txt
@@ -1,5 +1,5 @@
[doctest] run with "--help" for options
===============================================================================
-[doctest] test cases: 1 | 1 passed | 0 failed | 20 skipped
+[doctest] test cases: 1 | 1 passed | 0 failed |
[doctest] assertions: 6 | 6 passed | 0 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.assertion_macros.cpp.txt b/examples/all_features/test_output/assertion_macros.cpp.txt
similarity index 97%
rename from examples/all_features/test_output/all_features.assertion_macros.cpp.txt
rename to examples/all_features/test_output/assertion_macros.cpp.txt
index 094bcea..f114ac8 100644
--- a/examples/all_features/test_output/all_features.assertion_macros.cpp.txt
+++ b/examples/all_features/test_output/assertion_macros.cpp.txt
@@ -96,6 +96,6 @@
whops!
===============================================================================
-[doctest] test cases: 7 | 1 passed | 6 failed | 14 skipped
+[doctest] test cases: 7 | 1 passed | 6 failed |
[doctest] assertions: 24 | 12 passed | 12 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.coverage_maxout.cpp.txt b/examples/all_features/test_output/coverage_maxout.cpp.txt
similarity index 95%
rename from examples/all_features/test_output/all_features.coverage_maxout.cpp.txt
rename to examples/all_features/test_output/coverage_maxout.cpp.txt
index 45375ee..614f6c6 100644
--- a/examples/all_features/test_output/all_features.coverage_maxout.cpp.txt
+++ b/examples/all_features/test_output/coverage_maxout.cpp.txt
@@ -54,6 +54,6 @@
unknown exception
===============================================================================
-[doctest] test cases: 5 | 2 passed | 3 failed | 16 skipped
+[doctest] test cases: 5 | 2 passed | 3 failed |
[doctest] assertions: 60 | 52 passed | 8 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.doctest_proxy.h.txt b/examples/all_features/test_output/doctest_proxy.h.txt
similarity index 73%
rename from examples/all_features/test_output/all_features.doctest_proxy.h.txt
rename to examples/all_features/test_output/doctest_proxy.h.txt
index c8a806b..eca69f0 100644
--- a/examples/all_features/test_output/all_features.doctest_proxy.h.txt
+++ b/examples/all_features/test_output/doctest_proxy.h.txt
@@ -1,5 +1,5 @@
[doctest] run with "--help" for options
===============================================================================
-[doctest] test cases: 0 | 0 passed | 0 failed | 21 skipped
+[doctest] test cases: 0 | 0 passed | 0 failed |
[doctest] assertions: 0 | 0 passed | 0 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.subcases.cpp.txt b/examples/all_features/test_output/logging.cpp.txt
similarity index 84%
copy from examples/all_features/test_output/all_features.subcases.cpp.txt
copy to examples/all_features/test_output/logging.cpp.txt
index 3fe1886..bf8d161 100644
--- a/examples/all_features/test_output/all_features.subcases.cpp.txt
+++ b/examples/all_features/test_output/logging.cpp.txt
@@ -11,7 +11,7 @@
root
2
== TEST CASE ==================================================================
-subcases.cpp(0)
+logging.cpp(0)
lots of nested subcases
TEST CASE FAILED!
@@ -19,39 +19,39 @@
unknown exception
== TEST CASE ==================================================================
-subcases.cpp(0)
+logging.cpp(0)
Scenario: vectors can be sized and resized
Given: A vector with some items
When: the size is increased
Then: the size and capacity change
-subcases.cpp(0) ERROR!
+logging.cpp(0) ERROR!
CHECK( v.size() == 20 )
with expansion:
CHECK( 10 == 20 )
== TEST CASE ==================================================================
-subcases.cpp(0)
+logging.cpp(0)
Scenario: vectors can be sized and resized
Given: A vector with some items
When: less capacity is reserved
Then: neither size nor capacity are changed
-subcases.cpp(0) ERROR!
+logging.cpp(0) ERROR!
CHECK( v.size() == 10 )
with expansion:
CHECK( 5 == 10 )
== TEST CASE ==================================================================
-subcases.cpp(0)
+logging.cpp(0)
test with a fixture - 2
-subcases.cpp(0) ERROR!
+logging.cpp(0) ERROR!
CHECK( data == 85 )
with expansion:
CHECK( 84 == 85 )
===============================================================================
-[doctest] test cases: 4 | 1 passed | 3 failed | 17 skipped
+[doctest] test cases: 4 | 1 passed | 3 failed |
[doctest] assertions: 18 | 15 passed | 3 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.main.cpp.txt b/examples/all_features/test_output/main.cpp.txt
similarity index 73%
rename from examples/all_features/test_output/all_features.main.cpp.txt
rename to examples/all_features/test_output/main.cpp.txt
index 589d379..ef42e86 100644
--- a/examples/all_features/test_output/all_features.main.cpp.txt
+++ b/examples/all_features/test_output/main.cpp.txt
@@ -1,5 +1,5 @@
[doctest] run with "--help" for options
===============================================================================
-[doctest] test cases: 1 | 1 passed | 0 failed | 20 skipped
+[doctest] test cases: 1 | 1 passed | 0 failed |
[doctest] assertions: 1 | 1 passed | 0 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.stringification.cpp.txt b/examples/all_features/test_output/stringification.cpp.txt
similarity index 93%
rename from examples/all_features/test_output/all_features.stringification.cpp.txt
rename to examples/all_features/test_output/stringification.cpp.txt
index 7a7bdf5..3250acb 100644
--- a/examples/all_features/test_output/all_features.stringification.cpp.txt
+++ b/examples/all_features/test_output/stringification.cpp.txt
@@ -36,6 +36,6 @@
int: 5
===============================================================================
-[doctest] test cases: 2 | 0 passed | 2 failed | 19 skipped
+[doctest] test cases: 2 | 0 passed | 2 failed |
[doctest] assertions: 4 | 0 passed | 4 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.subcases.cpp.txt b/examples/all_features/test_output/subcases.cpp.txt
similarity index 94%
rename from examples/all_features/test_output/all_features.subcases.cpp.txt
rename to examples/all_features/test_output/subcases.cpp.txt
index 3fe1886..cb1e8e7 100644
--- a/examples/all_features/test_output/all_features.subcases.cpp.txt
+++ b/examples/all_features/test_output/subcases.cpp.txt
@@ -52,6 +52,6 @@
CHECK( 84 == 85 )
===============================================================================
-[doctest] test cases: 4 | 1 passed | 3 failed | 17 skipped
+[doctest] test cases: 4 | 1 passed | 3 failed |
[doctest] assertions: 18 | 15 passed | 3 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.subcases.cpp.txt b/examples/all_features/test_output/templated_test_cases.cpp.txt
similarity index 80%
copy from examples/all_features/test_output/all_features.subcases.cpp.txt
copy to examples/all_features/test_output/templated_test_cases.cpp.txt
index 3fe1886..5d97a25 100644
--- a/examples/all_features/test_output/all_features.subcases.cpp.txt
+++ b/examples/all_features/test_output/templated_test_cases.cpp.txt
@@ -11,7 +11,7 @@
root
2
== TEST CASE ==================================================================
-subcases.cpp(0)
+templated_test_cases.cpp(0)
lots of nested subcases
TEST CASE FAILED!
@@ -19,39 +19,39 @@
unknown exception
== TEST CASE ==================================================================
-subcases.cpp(0)
+templated_test_cases.cpp(0)
Scenario: vectors can be sized and resized
Given: A vector with some items
When: the size is increased
Then: the size and capacity change
-subcases.cpp(0) ERROR!
+templated_test_cases.cpp(0) ERROR!
CHECK( v.size() == 20 )
with expansion:
CHECK( 10 == 20 )
== TEST CASE ==================================================================
-subcases.cpp(0)
+templated_test_cases.cpp(0)
Scenario: vectors can be sized and resized
Given: A vector with some items
When: less capacity is reserved
Then: neither size nor capacity are changed
-subcases.cpp(0) ERROR!
+templated_test_cases.cpp(0) ERROR!
CHECK( v.size() == 10 )
with expansion:
CHECK( 5 == 10 )
== TEST CASE ==================================================================
-subcases.cpp(0)
+templated_test_cases.cpp(0)
test with a fixture - 2
-subcases.cpp(0) ERROR!
+templated_test_cases.cpp(0) ERROR!
CHECK( data == 85 )
with expansion:
CHECK( 84 == 85 )
===============================================================================
-[doctest] test cases: 4 | 1 passed | 3 failed | 17 skipped
+[doctest] test cases: 4 | 1 passed | 3 failed |
[doctest] assertions: 18 | 15 passed | 3 failed |
Program code.
diff --git a/examples/all_features/test_output/all_features.subcases.cpp.txt b/examples/all_features/test_output/test_suites.cpp.txt
similarity index 84%
copy from examples/all_features/test_output/all_features.subcases.cpp.txt
copy to examples/all_features/test_output/test_suites.cpp.txt
index 3fe1886..c2f42ab 100644
--- a/examples/all_features/test_output/all_features.subcases.cpp.txt
+++ b/examples/all_features/test_output/test_suites.cpp.txt
@@ -11,7 +11,7 @@
root
2
== TEST CASE ==================================================================
-subcases.cpp(0)
+test_suites.cpp(0)
lots of nested subcases
TEST CASE FAILED!
@@ -19,39 +19,39 @@
unknown exception
== TEST CASE ==================================================================
-subcases.cpp(0)
+test_suites.cpp(0)
Scenario: vectors can be sized and resized
Given: A vector with some items
When: the size is increased
Then: the size and capacity change
-subcases.cpp(0) ERROR!
+test_suites.cpp(0) ERROR!
CHECK( v.size() == 20 )
with expansion:
CHECK( 10 == 20 )
== TEST CASE ==================================================================
-subcases.cpp(0)
+test_suites.cpp(0)
Scenario: vectors can be sized and resized
Given: A vector with some items
When: less capacity is reserved
Then: neither size nor capacity are changed
-subcases.cpp(0) ERROR!
+test_suites.cpp(0) ERROR!
CHECK( v.size() == 10 )
with expansion:
CHECK( 5 == 10 )
== TEST CASE ==================================================================
-subcases.cpp(0)
+test_suites.cpp(0)
test with a fixture - 2
-subcases.cpp(0) ERROR!
+test_suites.cpp(0) ERROR!
CHECK( data == 85 )
with expansion:
CHECK( 84 == 85 )
===============================================================================
-[doctest] test cases: 4 | 1 passed | 3 failed | 17 skipped
+[doctest] test cases: 6 | 3 passed | 3 failed |
[doctest] assertions: 18 | 15 passed | 3 failed |
Program code.