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
39cf5218
Commit
39cf5218
authored
Oct 30, 2015
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip a test on windows
parent
7115ff26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
21 deletions
+25
-21
init_test.dart
packages/flutter_tools/test/init_test.dart
+25
-21
No files found.
packages/flutter_tools/test/init_test.dart
View file @
39cf5218
...
...
@@ -24,26 +24,30 @@ defineTests() {
temp
.
deleteSync
(
recursive:
true
);
});
// Verify that we create a project that is well-formed.
test
(
'init flutter-simple'
,
()
async
{
InitCommand
command
=
new
InitCommand
();
CommandRunner
runner
=
new
CommandRunner
(
'test_flutter'
,
''
)
..
addCommand
(
command
);
await
runner
.
run
([
'init'
,
'--out'
,
temp
.
path
])
.
then
((
int
code
)
=>
expect
(
code
,
equals
(
0
)));
String
path
=
p
.
join
(
temp
.
path
,
'lib'
,
'main.dart'
);
expect
(
new
File
(
path
).
existsSync
(),
true
);
ProcessResult
exec
=
Process
.
runSync
(
sdkBinaryName
(
'dartanalyzer'
),
[
'--fatal-warnings'
,
path
],
workingDirectory:
temp
.
path
);
if
(
exec
.
exitCode
!=
0
)
{
print
(
exec
.
stdout
);
print
(
exec
.
stderr
);
}
expect
(
exec
.
exitCode
,
0
);
},
// This test can take a while due to network requests.
timeout:
new
Timeout
(
new
Duration
(
minutes:
3
)));
// This test consistently times out on our windows bot. The code is already
// covered on the linux one.
if
(!
Platform
.
isWindows
)
{
// Verify that we create a project that is well-formed.
test
(
'init flutter-simple'
,
()
async
{
InitCommand
command
=
new
InitCommand
();
CommandRunner
runner
=
new
CommandRunner
(
'test_flutter'
,
''
)
..
addCommand
(
command
);
await
runner
.
run
([
'init'
,
'--out'
,
temp
.
path
])
.
then
((
int
code
)
=>
expect
(
code
,
equals
(
0
)));
String
path
=
p
.
join
(
temp
.
path
,
'lib'
,
'main.dart'
);
expect
(
new
File
(
path
).
existsSync
(),
true
);
ProcessResult
exec
=
Process
.
runSync
(
sdkBinaryName
(
'dartanalyzer'
),
[
'--fatal-warnings'
,
path
],
workingDirectory:
temp
.
path
);
if
(
exec
.
exitCode
!=
0
)
{
print
(
exec
.
stdout
);
print
(
exec
.
stderr
);
}
expect
(
exec
.
exitCode
,
0
);
},
// This test can take a while due to network requests.
timeout:
new
Timeout
(
new
Duration
(
minutes:
2
)));
}
});
}
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