Open
Description
When running tests that have failures, the test runner shows all test names as they execute and provides a final summary count (e.g. "+152 -6"), but fails to indicate which specific tests failed. This makes debugging test failures unnecessarily difficult.
Current Behavior
If 6 tests fail, this is what we see:
00:26 +152 -6: Some tests failed.
The output shows:
- All test names as they execute
- A final summary showing total passes and failures
- Theresult gives no indication of which specific tests failed. This is a major problem if the output is longer than the the console's max text because you can't even scroll back to to see the tests that failed.
Expected Behavior
The test runner should:
- Clearly mark failed tests in the output as they occur
- A final summary showing total passes and failures
- A final summary showing a list of the failed tests at the end
Example:
Failed Tests (1):
Test 2 (test/some_test.dart:123)
Steps To Reproduce
Run this test with dart run
import 'package:test/test.dart';
void main() {
test('fail', () {
fail('fail');
});
test('calculate', () {
for (var i = 0; i < 10000; i++) {
print('Blank stuff');
}
});
}
You will see this in the console:

All of the information about what test failed has been erased. You can't actually find out what failed.
Environment
- Dart SDK version: 3.7.0
- package:test version: ^1.24.0
- OS: macOS