Display the report of the unit test and return the number of failed tests
| 76 | |
| 77 | /// Display the report of the unit test and return the number of failed tests |
| 78 | long Test::report() const { |
| 79 | |
| 80 | if(mOutputStream) { |
| 81 | *mOutputStream << std::left << std::setw(30) << std::setfill(' ') |
| 82 | << "Test " + mName + " :" << std::setw(10) << "Passed: " |
| 83 | << std::setw(8) << mNbPassedTests |
| 84 | << std::setw(13) << "Failed: " |
| 85 | << std::setw(8) << mNbFailedTests << std::endl; |
| 86 | } |
| 87 | |
| 88 | // Return the number of failed tests |
| 89 | return mNbFailedTests; |
| 90 | } |