| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 /// Provides a [Command] interface for interacting with a Fletch driver session. | 5 /// Provides a [Command] interface for interacting with a Fletch driver session. |
| 6 /// | 6 /// |
| 7 /// Normally, this is used by test.dart, but is also has a [main] method that | 7 /// Normally, this is used by test.dart, but is also has a [main] method that |
| 8 /// makes it possible to run a test outside test.dart. | 8 /// makes it possible to run a test outside test.dart. |
| 9 library test.fletch_session_command; | 9 library test.fletch_session_command; |
| 10 | 10 |
| 11 import 'dart:async' show | 11 import 'dart:async' show |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 String script = arguments[1]; | 679 String script = arguments[1]; |
| 680 arguments = arguments.skip(2).toList(); | 680 arguments = arguments.skip(2).toList(); |
| 681 Map<String, String> environmentOverrides = <String, String>{}; | 681 Map<String, String> environmentOverrides = <String, String>{}; |
| 682 FletchSessionCommand command = new FletchSessionCommand( | 682 FletchSessionCommand command = new FletchSessionCommand( |
| 683 executable, script, arguments, environmentOverrides, | 683 executable, script, arguments, environmentOverrides, |
| 684 settingsFileName: settingsFileName); | 684 settingsFileName: settingsFileName); |
| 685 FletchTestCommandOutput output = | 685 FletchTestCommandOutput output = |
| 686 await command.run(0, true, superVerbose: true); | 686 await command.run(0, true, superVerbose: true); |
| 687 print("Test outcome: ${output.decodeExitCode()}"); | 687 print("Test outcome: ${output.decodeExitCode()}"); |
| 688 } | 688 } |
| OLD | NEW |