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
6b2f3bc1
Unverified
Commit
6b2f3bc1
authored
May 11, 2021
by
Yegor
Committed by
GitHub
May 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add web e2e and smoke tests to the long running test shard (#82281)
parent
43d06c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
test.dart
dev/bots/test.dart
+51
-0
No files found.
dev/bots/test.dart
View file @
6b2f3bc1
...
@@ -833,6 +833,16 @@ Future<void> _runWebUnitTests() async {
...
@@ -833,6 +833,16 @@ Future<void> _runWebUnitTests() async {
/// Coarse-grained integration tests running on the Web.
/// Coarse-grained integration tests running on the Web.
Future
<
void
>
_runWebLongRunningTests
()
async
{
Future
<
void
>
_runWebLongRunningTests
()
async
{
final
List
<
ShardRunner
>
tests
=
<
ShardRunner
>[
final
List
<
ShardRunner
>
tests
=
<
ShardRunner
>[
()
=>
_runFlutterDriverWebTest
(
testAppDirectory:
path
.
join
(
flutterRoot
,
'dev'
,
'integration_tests'
,
'web_e2e_tests'
),
target:
'test_driver/text_editing_integration.dart'
,
buildMode:
'profile'
,
),
()
=>
_runFlutterDriverWebTest
(
testAppDirectory:
path
.
join
(
flutterRoot
,
'examples'
,
'hello_world'
),
target:
'test_driver/smoke_web_engine.dart'
,
buildMode:
'profile'
,
),
()
=>
_runGalleryE2eWebTest
(
'debug'
),
()
=>
_runGalleryE2eWebTest
(
'debug'
),
()
=>
_runGalleryE2eWebTest
(
'debug'
,
canvasKit:
true
),
()
=>
_runGalleryE2eWebTest
(
'debug'
,
canvasKit:
true
),
()
=>
_runGalleryE2eWebTest
(
'profile'
),
()
=>
_runGalleryE2eWebTest
(
'profile'
),
...
@@ -846,6 +856,36 @@ Future<void> _runWebLongRunningTests() async {
...
@@ -846,6 +856,36 @@ Future<void> _runWebLongRunningTests() async {
await
_stopChromeDriver
();
await
_stopChromeDriver
();
}
}
Future
<
void
>
_runFlutterDriverWebTest
({
@required
String
target
,
@required
String
buildMode
,
@required
String
testAppDirectory
,
})
async
{
print
(
'
${green}
Running web_e2e_test
$target
in
$buildMode
mode.
$reset
'
);
await
runCommand
(
flutter
,
<
String
>[
'clean'
],
workingDirectory:
testAppDirectory
,
);
await
runCommand
(
flutter
,
<
String
>[
'drive'
,
'--target=
$target
'
,
'--browser-name=chrome'
,
'--no-sound-null-safety'
,
'-d'
,
'web-server'
,
'--
$buildMode
'
,
],
workingDirectory:
testAppDirectory
,
environment:
<
String
,
String
>{
'FLUTTER_WEB'
:
'true'
,
},
);
print
(
'
${green}
Integration test passed.
$reset
'
);
}
/// Returns the commit hash of the flutter/plugins repository that's rolled in.
/// Returns the commit hash of the flutter/plugins repository that's rolled in.
///
///
/// The flutter/plugins repository is a downstream dependency, it is only used
/// The flutter/plugins repository is a downstream dependency, it is only used
...
@@ -1029,6 +1069,17 @@ Future<void> _runGalleryE2eWebTest(String buildMode, { bool canvasKit = false })
...
@@ -1029,6 +1069,17 @@ Future<void> _runGalleryE2eWebTest(String buildMode, { bool canvasKit = false })
print
(
'
${green}
Integration test passed.
$reset
'
);
print
(
'
${green}
Integration test passed.
$reset
'
);
}
}
/// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/// !!! WARNING WARNING WARNING WARNING WARNING WARNING!!!
/// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
///
/// Do not put any more tests here. This shard is not properly subsharded.
/// Adding more tests here will linearly increase the runtime of the shard
/// making the overall Flutter CI build longer. Consider adding tests to
/// [_runWebLongRunningTests] instead (increasing subshard count if necessary).
///
// TODO(yjbanov): increase subshard count in _runWebLongRunningTests and retire
// this shard.
Future
<
void
>
_runWebIntegrationTests
()
async
{
Future
<
void
>
_runWebIntegrationTests
()
async
{
await
_runWebStackTraceTest
(
'profile'
,
'lib/stack_trace.dart'
);
await
_runWebStackTraceTest
(
'profile'
,
'lib/stack_trace.dart'
);
await
_runWebStackTraceTest
(
'release'
,
'lib/stack_trace.dart'
);
await
_runWebStackTraceTest
(
'release'
,
'lib/stack_trace.dart'
);
...
...
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