OLD | NEW |
(Empty) | |
| 1 import "message_extraction_test.dart"; |
| 2 import "dart:io"; |
| 3 import "package:unittest/unittest.dart"; |
| 4 |
| 5 main() { |
| 6 run(null, ["extract_to_json.dart", |
| 7 "sample_with_messages.dart", "part_of_sample_with_messages.dart"]) |
| 8 .then((ProcessResult result) { |
| 9 expect(result.exitCode, 0); |
| 10 }); |
| 11 run(null, ["extract_to_json.dart", "--warnings-are-errors", |
| 12 "sample_with_messages.dart", "part_of_sample_with_messages.dart"]) |
| 13 .then((ProcessResult result) { |
| 14 expect(result.exitCode, 1); |
| 15 }); |
| 16 } |
OLD | NEW |