flutter start should give better errors when it can't find main

Now we suggest using -t to specify the main Dart file.

Fixes #53
This commit is contained in:
Adam Barth
2015-11-09 11:11:59 -08:00
parent 8a8bd0197c
commit 6e7f575950
2 changed files with 10 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ defineTests() {
CommandRunner runner = new CommandRunner('test_flutter', '')
..addCommand(command);
runner.run(['start']).then((int code) => expect(code, equals(0)));
runner.run(['start', '-t', 'test/start_test.dart']).then((int code) => expect(code, equals(0)));
});
test('returns 0 when iOS is connected and ready to be started', () {