doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

test_cases_and_suites.cpp.txt (3552B)


      1 [doctest] run with "--help" for options
      2 ===============================================================================
      3 test_cases_and_suites.cpp(0):
      4 TEST CASE:  should fail because of an exception
      5 
      6 test_cases_and_suites.cpp(0): ERROR: test case THREW exception: 0
      7 
      8 ===============================================================================
      9 test_cases_and_suites.cpp(0):
     10 TEST SUITE: scoped test suite
     11 TEST CASE:  part of scoped
     12 
     13 test_cases_and_suites.cpp(0): FATAL ERROR: 
     14 
     15 ===============================================================================
     16 test_cases_and_suites.cpp(0):
     17 TEST SUITE: scoped test suite
     18 TEST CASE:  part of scoped 2
     19 
     20 test_cases_and_suites.cpp(0): FATAL ERROR: 
     21 
     22 ===============================================================================
     23 test_cases_and_suites.cpp(0):
     24 TEST SUITE: some TS
     25 TEST CASE:  part of some TS
     26 
     27 test_cases_and_suites.cpp(0): FATAL ERROR: 
     28 
     29 ===============================================================================
     30 test_cases_and_suites.cpp(0):
     31 TEST CASE:  fixtured test - not part of a test suite
     32 
     33 test_cases_and_suites.cpp(0): ERROR: CHECK( data == 85 ) is NOT correct!
     34   values: CHECK( 21 == 85 )
     35 
     36 ===============================================================================
     37 test_cases_and_suites.cpp(0):
     38 TEST SUITE: ts1
     39 TEST CASE:  normal test in a test suite from a decorator
     40 
     41 test_cases_and_suites.cpp(0): MESSAGE: failing because of the timeout decorator!
     42 
     43 Test case exceeded time limit of 0.000001!
     44 ===============================================================================
     45 test_cases_and_suites.cpp(0):
     46 DESCRIPTION: this test has overridden its skip decorator
     47 TEST SUITE: skipped test cases
     48 TEST CASE:  unskipped
     49 
     50 test_cases_and_suites.cpp(0): FATAL ERROR: 
     51 
     52 ===============================================================================
     53 test_cases_and_suites.cpp(0):
     54 DESCRIPTION: regarding failures
     55 TEST SUITE: test suite with a description
     56 TEST CASE:  fails - and its allowed
     57 
     58 test_cases_and_suites.cpp(0): FATAL ERROR: 
     59 
     60 Allowed to fail so marking it as not failed
     61 ===============================================================================
     62 test_cases_and_suites.cpp(0):
     63 DESCRIPTION: regarding failures
     64 TEST SUITE: test suite with a description
     65 TEST CASE:  fails as it should
     66 
     67 test_cases_and_suites.cpp(0): FATAL ERROR: 
     68 
     69 Failed as expected so marking it as not failed
     70 ===============================================================================
     71 test_cases_and_suites.cpp(0):
     72 DESCRIPTION: regarding failures
     73 TEST SUITE: test suite with a description
     74 TEST CASE:  doesn't fail but it should have
     75 
     76 Should have failed but didn't! Marking it as failed!
     77 ===============================================================================
     78 test_cases_and_suites.cpp(0):
     79 DESCRIPTION: regarding failures
     80 TEST SUITE: test suite with a description
     81 TEST CASE:  fails 1 time as it should
     82 
     83 test_cases_and_suites.cpp(0): FATAL ERROR: 
     84 
     85 Failed exactly 1 times as expected so marking it as not failed!
     86 ===============================================================================
     87 test_cases_and_suites.cpp(0):
     88 DESCRIPTION: regarding failures
     89 TEST SUITE: test suite with a description
     90 TEST CASE:  fails more times than it should
     91 
     92 test_cases_and_suites.cpp(0): ERROR: 
     93 
     94 test_cases_and_suites.cpp(0): ERROR: 
     95 
     96 Didn't fail exactly 1 times so marking it as failed!
     97 ===============================================================================
     98 [doctest] test cases: 15 | 6 passed |  9 failed |
     99 [doctest] assertions: 12 | 1 passed | 11 failed |
    100 [doctest] Status: FAILURE!
    101 Program code.