Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Dec 1, 2024
1 parent 15432cf commit 91e233b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion test/gen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ void main() {
expectLine(stdout, ['fvm_puby_test', 'fvm dart $argString']);
expectLine(stdout, [path.join('fvm_puby_test', 'example'), 'Skip']);
},
timeout: Timeout.factor(1.5),
timeout: Timeout(const Duration(seconds: 120)),
);
}
34 changes: 19 additions & 15 deletions test/run_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,25 @@ import 'package:path/path.dart' as path;
import 'test_utils.dart';

void main() {
test('puby run', () async {
final result = await testCommand(
['run', 'custom_lint'],
projects: defaultProjects(devDependencies: {'custom_lint: any'}),
link: true,
);
final stdout = result.stdout;
test(
'puby run',
() async {
final result = await testCommand(
['run', 'custom_lint'],
projects: defaultProjects(devDependencies: {'custom_lint: any'}),
link: true,
);
final stdout = result.stdout;

expect(result.exitCode, ExitCode.success.code);
expect(result.exitCode, ExitCode.success.code);

expectLine(stdout, ['dart_puby_test', 'dart run custom_lint']);
expectLine(stdout, [path.join('dart_puby_test', 'example'), 'Skip']);
expectLine(stdout, ['flutter_puby_test', 'dart run custom_lint']);
expectLine(stdout, [path.join('flutter_puby_test', 'example'), 'Skip']);
expectLine(stdout, ['fvm_puby_test', 'fvm dart run custom_lint']);
expectLine(stdout, [path.join('fvm_puby_test', 'example'), 'Skip']);
});
expectLine(stdout, ['dart_puby_test', 'dart run custom_lint']);
expectLine(stdout, [path.join('dart_puby_test', 'example'), 'Skip']);
expectLine(stdout, ['flutter_puby_test', 'dart run custom_lint']);
expectLine(stdout, [path.join('flutter_puby_test', 'example'), 'Skip']);
expectLine(stdout, ['fvm_puby_test', 'fvm dart run custom_lint']);
expectLine(stdout, [path.join('fvm_puby_test', 'example'), 'Skip']);
},
timeout: Timeout(const Duration(seconds: 120)),
);
}

0 comments on commit 91e233b

Please sign in to comment.