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
c90cd65a
Unverified
Commit
c90cd65a
authored
Mar 19, 2021
by
Jenn Magder
Committed by
GitHub
Mar 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standardize tool test shard selection (#78636)
parent
6a4dd4cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
23 deletions
+12
-23
test.dart
dev/bots/test.dart
+12
-23
No files found.
dev/bots/test.dart
View file @
c90cd65a
...
...
@@ -106,8 +106,8 @@ Future<void> main(List<String> args) async {
'framework_coverage'
:
_runFrameworkCoverage
,
'framework_tests'
:
_runFrameworkTests
,
'tool_tests'
:
_runToolTests
,
'web_tool_tests'
:
_runToolTests
,
'tool_integration_tests'
:
_runIntegrationToolTests
,
'web_tool_tests'
:
_runWebToolTests
,
'web_tests'
:
_runWebUnitTests
,
'web_integration_tests'
:
_runWebIntegrationTests
,
'web_long_running_tests'
:
_runWebLongRunningTests
,
...
...
@@ -274,6 +274,16 @@ Future<void> _runCommandsToolTests() async {
);
}
Future
<
void
>
_runWebToolTests
()
async
{
await
_pubRunTest
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
),
forceSingleCore:
true
,
testPaths:
<
String
>[
path
.
join
(
'test'
,
'web.shard'
)],
enableFlutterToolAsserts:
true
,
perTestTimeout:
const
Duration
(
minutes:
3
),
);
}
Future
<
void
>
_runIntegrationToolTests
()
async
{
final
String
toolsPath
=
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
);
final
List
<
String
>
allTests
=
Directory
(
path
.
join
(
toolsPath
,
'test'
,
'integration.shard'
))
...
...
@@ -292,31 +302,10 @@ Future<void> _runToolTests() async {
await
selectSubshard
(<
String
,
ShardRunner
>{
'general'
:
_runGeneralToolTests
,
'commands'
:
_runCommandsToolTests
,
'web'
:
_runWebToolTests
,
});
}
Future
<
void
>
_runWebToolTests
()
async
{
const
String
kDotShard
=
'.shard'
;
const
String
kWeb
=
'web'
;
const
String
kTest
=
'test'
;
final
String
toolsPath
=
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
);
final
Map
<
String
,
ShardRunner
>
subshards
=
<
String
,
ShardRunner
>{
kWeb:
()
async
{
await
_pubRunTest
(
toolsPath
,
forceSingleCore:
true
,
testPaths:
<
String
>[
path
.
join
(
kTest
,
'
$kWeb$kDotShard
'
,
''
)],
enableFlutterToolAsserts:
true
,
perTestTimeout:
const
Duration
(
minutes:
3
),
);
}
};
await
selectSubshard
(
subshards
);
}
/// Verifies that APK, and IPA (if on macOS) builds the examples apps
/// without crashing. It does not actually launch the apps. That happens later
/// in the devicelab. This is just a smoke-test. In particular, this will verify
...
...
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