Open
Description
This gets very confusing when running a larger test suite.
$ dart test -r expanded test/
00:00 +0: loading test/b_test.dart
00:00 +0: test/a_test.dart: calculate A
00:00 +1: test/b_test.dart: calculate B
00:00 +2: All tests passed!
$ dart test -r expanded test/
00:00 +0: loading test/b_test.dart
00:00 +0: test/a_test.dart: calculate A
00:00 +1: test/b_test.dart: calculate B
00:00 +2: All tests passed!
$ dart test -r expanded test/
00:00 +0: loading test/b_test.dart
00:00 +0: test/b_test.dart: calculate B
00:00 +1: test/b_test.dart: calculate B
00:00 +2: All tests passed!
$ dart test -r expanded test/
00:00 +0: loading test/b_test.dart
00:00 +0: test/a_test.dart: calculate A
00:00 +1: test/a_test.dart: calculate A
00:00 +2: All tests passed!
I have files:
import 'package:test/test.dart';
void main() {
test('calculate A', () {
// print('A');
});
}
and
import 'package:test/test.dart';
void main() {
test('calculate B', () {
// print('B');
});
}
If I make the tests print something, then this is less likely to happen, but I'm not sure it won't.