Enable flutter drive on Windows (#8146)

... and run some more tests on Windows.
This commit is contained in:
Michael Goderbauer
2017-02-14 13:14:52 -08:00
committed by GitHub
parent 36f6405179
commit 7231fd3ed6
4 changed files with 59 additions and 50 deletions

View File

@@ -53,7 +53,6 @@ Future<Null> main() async {
workingDirectory: p.join(flutterRoot, 'packages', 'flutter_driver'),
expectFailure: true,
printOutput: false,
skip: Platform.isWindows, // TODO(goderbauer): run on Windows when 'drive' command works
);
List<String> coverageFlags = <String>[];

View File

@@ -14,7 +14,7 @@ void main() {
for (String testName in testNames) {
options..addAll(<String>['-t', testName]);
}
Process scriptProcess = await Process.start(
ProcessResult scriptProcess = Process.runSync(
'../../bin/cache/dart-sdk/bin/dart',
options,
);
@@ -35,7 +35,7 @@ void main() {
test('exits with code 1 when task throws', () async {
expect(await runScript(<String>['smoke_test_throws']), 1);
}, skip: Platform.isWindows); // TODO(goderbauer): figure out why this fails on Windows
});
test('exits with code 1 when fails', () async {
expect(await runScript(<String>['smoke_test_failure']), 1);