summary property

String get summary

Returns a summary of the test results. That contains:

  • Total number of tests
  • Number of successful tests
  • Number of failed tests
  • List of failed tests
  • Number of skipped tests
  • Path to the report file
  • Duration of the tests

Implementation

String get summary =>
    '\n${AnsiCodes.bold}Test summary:${AnsiCodes.reset}\n'
    '${Emojis.total} Total: $totalTests\n'
    '${Emojis.success} Successful: $successfulTests\n'
    '${Emojis.failure} Failed: $failedTestsCount\n'
    '${failedTestsCount > 0 ? '$failedTestsList\n' : ''}'
    '${Emojis.skip} Skipped: $skippedTests\n'
    '${Emojis.report} Report: ${reportPath.replaceAll(' ', '%20')}\n'
    '${Emojis.duration} Duration: ${_stopwatch.elapsed.toFormattedString()}\n';