Skip to content

Commit 63423b1

Browse files
committed
fix: test on TestCLIRunner
1 parent 933a28e commit 63423b1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/src/cli/test_runner_cli_test.dart

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import 'package:stack_trace/stack_trace.dart' as stack_trace;
1111
import 'package:test/test.dart';
1212
import 'package:very_good_cli/src/cli/cli.dart';
1313
import 'package:very_good_test_runner/very_good_test_runner.dart';
14+
1415
import '../../fixtures/fixtures.dart';
1516

1617
class _MockMasonGenerator extends Mock implements MasonGenerator {}
@@ -338,6 +339,14 @@ void main() {
338339
'\x1B[2K\r00:12 +7 -1: Some tests failed.\n',
339340
]),
340341
);
342+
343+
final testPath = p.join(
344+
'test',
345+
'counter',
346+
'cubit',
347+
'counter_cubit_test.dart',
348+
);
349+
341350
expect(
342351
stderrLogs,
343352
equals(
@@ -349,7 +358,7 @@ void main() {
349358
'test/counter/cubit/counter_cubit_test.dart 16:7 main.<fn>.<fn>\n',
350359
'\x1B[2K\rCounterCubit initial state is 0 ${tempDirectory.path}/test/counter/cubit/counter_cubit_test.dart (FAILED)',
351360
'\x1B[2K\rFailing Tests:\n'
352-
'\x1B[2K\r - test/counter/cubit/counter_cubit_test.dart \n'
361+
'\x1B[2K\r - $testPath \n'
353362
'\x1B[2K\r \t- [FAILED] CounterCubit initial state is 0\n',
354363
],
355364
),

0 commit comments

Comments
 (0)