Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
bf33eb78
Commit
bf33eb78
authored
Dec 08, 2017
by
Ben Konyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabling 'flutter test' for Windows (woohoo!).
parent
3fe19d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+6
-4
No files found.
packages/flutter_tools/lib/src/artifacts.dart
View file @
bf33eb78
...
...
@@ -159,10 +159,10 @@ class CachedArtifacts extends Artifacts {
// android_arm in profile mode because it is available on all supported host platforms.
return
_getAndroidArtifactPath
(
artifact
,
TargetPlatform
.
android_arm
,
BuildMode
.
profile
);
case
Artifact
.
flutterTester
:
if
(
platform
==
TargetPlatform
.
windows_x64
)
throw
new
UnimplementedError
(
'Artifact
$artifact
not available on platfrom
$platform
.'
);
continue
fallThrough
;
fallThrough:
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
;
case
Artifact
.
vmSnapshotData
:
case
Artifact
.
isolateSnapshotData
:
case
Artifact
.
frontendServerSnapshotForEngineDartSdk
:
...
...
@@ -283,6 +283,8 @@ class LocalEngineArtifacts extends Artifacts {
return
fs
.
path
.
join
(
engineOutPath
,
_artifactToFileName
(
Artifact
.
flutterTester
));
}
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'
);
}
throw
new
Exception
(
'Unsupported platform
$platform
.'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment