Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8937

C++ Unit Tests Should Print Success/Failure summary at end of execution.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.3
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Fully Compatible

      C++ unit test programs print failure information during test execution, but if there are several suites in a test program, and one case in one suite early in the execution fails, it might scroll off the top of the screen, making it hard for someone running the test by hand to notice.

      Recommended behavior: After the last suite executes, if all tests in all suites passed, log the string "SUCCESS - All tests in all suites passed". If any tests in any suites failed, log an enumeration of the failing tests, ordered by suite, and finally "FAILURE - %d tests in %d suites failed".

      Failing tests:
      Case1/Test1 Failed
      Case1/Test3 Failed
      Case9/Test14 Failed
      
      FAILURE - 3 tests in 2 suites failed
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: