Skip to content

Enable 'flutter test' on Windows. - #13459

Merged
bkonyi merged 5 commits into
masterfrom
flutter_tester_windows
Dec 11, 2017
Merged

bkonyi merged 5 commits into
masterfrom
flutter_tester_windows

Conversation

@bkonyi

@bkonyi bkonyi commented Dec 8, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@bkonyi
bkonyi requested a review from goderbauer December 8, 2017 21:17
@googlebot

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again.

@bkonyi bkonyi added platform-windows Building on or for Windows specifically and removed cla: no labels Dec 8, 2017
final String engineArtifactsPath = cache.getArtifactDirectory('engine').path;
final String platformDirName = getNameForTargetPlatform(platform);
String path = fs.path.join(engineArtifactsPath, platformDirName, _artifactToFileName(artifact));
return (platform == TargetPlatform.windows_x64) ? (path + '.exe') : path;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this needs the .exe? For gen_snapshot for example we just provide the file name without ending and I believe the process lib figures out which ending is actually required...

} else if (getCurrentHostPlatform() == HostPlatform.darwin_x64) {
return fs.path.join(engineOutPath, 'flutter_tester');
} else if (getCurrentHostPlatform() == HostPlatform.windows_x64) {
return fs.path.join(engineOutPath, 'flutter_tester.exe');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@goderbauer goderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is sooo cool!

Before you submit this you should probably make sure that the flutter_tester for Windows gets uploaded to the cloud and roll the engine to a revision where it is available to make sure that the command doesn't fail due to missing binary.

@bkonyi
bkonyi merged commit 0ca1af7 into master Dec 11, 2017
@bkonyi
bkonyi deleted the flutter_tester_windows branch December 11, 2017 19:13
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-windows Building on or for Windows specifically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants