Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show list of failed tests in the final summary #1720

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Show list of failed tests in the final summary
  • Loading branch information
gmpassos committed Jun 15, 2022

Verified

This commit was signed with the committer’s verified signature.
BartoszGrajdek Bartosz Grajdek
commit 566d6035e54704ca7d408f69aa8527cd4fb0fde6
6 changes: 6 additions & 0 deletions pkgs/test_core/lib/src/runner/reporter/compact.dart
Original file line number Diff line number Diff line change
@@ -298,6 +298,12 @@ class CompactReporter implements Reporter {
suffix: ' - did not complete $_bold$_red[E]$_noColor');
_sink.writeln('');
}
for (var failedTest in _engine.failed) {
_progressLine(_description(failedTest),
truncate: false,
suffix: ' - $_bold${_red}failed$_noColor $_bold$_red[E]$_noColor');
_sink.writeln('');
}
_progressLine('Some tests failed.', color: _red);
_sink.writeln('');
} else if (_engine.passed.isEmpty) {