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
46b2d646
Unverified
Commit
46b2d646
authored
Nov 10, 2017
by
Mikkel Nygaard Ravn
Committed by
GitHub
Nov 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update timeouts for flutter create tests (#12965)
parent
7298f9ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
README.md
packages/flutter_tools/README.md
+1
-1
create_test.dart
packages/flutter_tools/test/commands/create_test.dart
+10
-9
No files found.
packages/flutter_tools/README.md
View file @
46b2d646
...
@@ -6,5 +6,5 @@ To run the tests, ensure that no devices are connected,
...
@@ -6,5 +6,5 @@ To run the tests, ensure that no devices are connected,
then navigate to
`flutter_tools`
and execute:
then navigate to
`flutter_tools`
and execute:
```
shell
```
shell
../../bin/cache/dart-sdk/bin/pub run
test
DART_VM_OPTIONS
=
--assert-initializer
../../bin/cache/dart-sdk/bin/pub run
test
```
```
packages/flutter_tools/test/commands/create_test.dart
View file @
46b2d646
...
@@ -57,7 +57,7 @@ void main() {
...
@@ -57,7 +57,7 @@ void main() {
'flutter_project.iml'
,
'flutter_project.iml'
,
],
],
);
);
},
timeout:
const
Timeout
.
factor
(
2
.0
));
},
timeout:
const
Timeout
.
factor
(
3
.0
));
testUsingContext
(
'kotlin/swift project'
,
()
async
{
testUsingContext
(
'kotlin/swift project'
,
()
async
{
return
_createProject
(
return
_createProject
(
...
@@ -76,7 +76,7 @@ void main() {
...
@@ -76,7 +76,7 @@ void main() {
'ios/Runner/main.m'
,
'ios/Runner/main.m'
,
],
],
);
);
});
}
,
timeout:
const
Timeout
.
factor
(
3.0
)
);
testUsingContext
(
'package project'
,
()
async
{
testUsingContext
(
'package project'
,
()
async
{
return
_createAndAnalyzeProject
(
return
_createAndAnalyzeProject
(
...
@@ -103,7 +103,7 @@ void main() {
...
@@ -103,7 +103,7 @@ void main() {
'test/widget_test.dart'
,
'test/widget_test.dart'
,
],
],
);
);
},
timeout:
const
Timeout
.
factor
(
2
.0
));
},
timeout:
const
Timeout
.
factor
(
3
.0
));
testUsingContext
(
'plugin project'
,
()
async
{
testUsingContext
(
'plugin project'
,
()
async
{
return
_createAndAnalyzeProject
(
return
_createAndAnalyzeProject
(
...
@@ -123,7 +123,7 @@ void main() {
...
@@ -123,7 +123,7 @@ void main() {
],
],
plugin:
true
,
plugin:
true
,
);
);
},
timeout:
const
Timeout
.
factor
(
2
.0
));
},
timeout:
const
Timeout
.
factor
(
3
.0
));
testUsingContext
(
'kotlin/swift plugin project'
,
()
async
{
testUsingContext
(
'kotlin/swift plugin project'
,
()
async
{
return
_createProject
(
return
_createProject
(
...
@@ -149,7 +149,7 @@ void main() {
...
@@ -149,7 +149,7 @@ void main() {
],
],
plugin:
true
,
plugin:
true
,
);
);
});
}
,
timeout:
const
Timeout
.
factor
(
3.0
)
);
testUsingContext
(
'plugin project with custom org'
,
()
async
{
testUsingContext
(
'plugin project with custom org'
,
()
async
{
return
_createProject
(
return
_createProject
(
...
@@ -165,7 +165,7 @@ void main() {
...
@@ -165,7 +165,7 @@ void main() {
],
],
plugin:
true
,
plugin:
true
,
);
);
});
}
,
timeout:
const
Timeout
.
factor
(
3.0
)
);
testUsingContext
(
'project with-driver-test'
,
()
async
{
testUsingContext
(
'project with-driver-test'
,
()
async
{
return
_createAndAnalyzeProject
(
return
_createAndAnalyzeProject
(
...
@@ -173,7 +173,7 @@ void main() {
...
@@ -173,7 +173,7 @@ void main() {
<
String
>[
'--with-driver-test'
],
<
String
>[
'--with-driver-test'
],
<
String
>[
'lib/main.dart'
],
<
String
>[
'lib/main.dart'
],
);
);
},
timeout:
const
Timeout
.
factor
(
2
.0
));
},
timeout:
const
Timeout
.
factor
(
3
.0
));
// Verify content and formatting
// Verify content and formatting
testUsingContext
(
'content'
,
()
async
{
testUsingContext
(
'content'
,
()
async
{
...
@@ -248,7 +248,8 @@ void main() {
...
@@ -248,7 +248,8 @@ void main() {
},
},
overrides:
<
Type
,
Generator
>{
overrides:
<
Type
,
Generator
>{
FlutterVersion:
()
=>
mockFlutterVersion
,
FlutterVersion:
()
=>
mockFlutterVersion
,
});
},
timeout:
const
Timeout
.
factor
(
3.0
));
// Verify that we can regenerate over an existing project.
// Verify that we can regenerate over an existing project.
testUsingContext
(
'can re-gen over existing project'
,
()
async
{
testUsingContext
(
'can re-gen over existing project'
,
()
async
{
...
@@ -260,7 +261,7 @@ void main() {
...
@@ -260,7 +261,7 @@ void main() {
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
});
}
,
timeout:
const
Timeout
.
factor
(
3.0
)
);
// Verify that we help the user correct an option ordering issue
// Verify that we help the user correct an option ordering issue
testUsingContext
(
'produces sensible error message'
,
()
async
{
testUsingContext
(
'produces sensible error message'
,
()
async
{
...
...
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