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
a217ab60
Unverified
Commit
a217ab60
authored
May 24, 2021
by
Jonah Williams
Committed by
GitHub
May 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] remove getLocalEngineArtifacts from integration tests that cant use it (#83282)
parent
b1992c16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
19 deletions
+6
-19
analyze_size_test.dart
...utter_tools/test/integration.shard/analyze_size_test.dart
+3
-5
command_output_test.dart
...ter_tools/test/integration.shard/command_output_test.dart
+3
-14
No files found.
packages/flutter_tools/test/integration.shard/analyze_size_test.dart
View file @
a217ab60
...
...
@@ -11,6 +11,9 @@ import 'package:flutter_tools/src/base/io.dart';
import
'../src/common.dart'
;
import
'test_utils.dart'
;
// This test file does not use [getLocalEngineArguments] because it requires
// multiple specific artifact output types.
const
String
apkDebugMessage
=
'A summary of your APK analysis can be found at: '
;
const
String
iosDebugMessage
=
'A summary of your iOS bundle analysis can be found at: '
;
const
String
runDevToolsMessage
=
'flutter pub global activate devtools; flutter pub global run devtools '
;
...
...
@@ -21,7 +24,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'apk'
,
'--analyze-size'
,
...
...
@@ -55,7 +57,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'ios'
,
'--analyze-size'
,
...
...
@@ -87,7 +88,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'apk'
,
'--analyze-size'
,
...
...
@@ -106,7 +106,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'apk'
,
'--analyze-size'
,
...
...
@@ -125,7 +124,6 @@ void main() {
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'apk'
,
'--analyze-size'
,
...
...
packages/flutter_tools/test/integration.shard/command_output_test.dart
View file @
a217ab60
...
...
@@ -13,12 +13,14 @@ import 'package:flutter_tools/src/features.dart';
import
'../src/common.dart'
;
import
'test_utils.dart'
;
// This test file does not use [getLocalEngineArguments] because it is testing
// command output and not using cached artifacts.
void
main
(
)
{
testWithoutContext
(
'All development tools and deprecated commands are hidden and help text is not verbose'
,
()
async
{
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'-h'
,
'-v'
,
]);
...
...
@@ -37,7 +39,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'-?'
,
]);
...
...
@@ -52,7 +53,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'doctor'
,
'-v'
,
]);
...
...
@@ -65,7 +65,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'doctor'
,
'-vv'
,
]);
...
...
@@ -78,7 +77,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'config'
,
]);
...
...
@@ -108,7 +106,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'run'
,
'--show-test-device'
,
// ensure command can fail to run and hit injection of correct logger.
'--machine'
,
...
...
@@ -125,7 +122,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'attach'
,
'--machine'
,
'-v'
,
...
...
@@ -138,7 +134,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'--version'
,
'--machine'
,
]);
...
...
@@ -158,7 +153,6 @@ void main() {
final
String
helloWorld
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'examples'
,
'hello_world'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'--show-test-device'
,
'attach'
,
'-d'
,
...
...
@@ -176,7 +170,6 @@ void main() {
final
String
helloWorld
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'examples'
,
'hello_world'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'--show-test-device'
,
'attach'
,
'-d'
,
...
...
@@ -202,7 +195,6 @@ void main() {
bootstrap
.
writeAsStringSync
(
'echo TESTING 1 2 3'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
]);
expect
(
result
.
stdout
,
contains
(
'TESTING 1 2 3'
));
...
...
@@ -216,7 +208,6 @@ void main() {
final
String
helloWorld
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'examples'
,
'hello_world'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'build'
,
'apk'
,
'--bundle-sksl-path=foo/bar/baz.json'
,
// This file does not exist.
...
...
@@ -231,7 +222,6 @@ void main() {
final
String
helloWorld
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'examples'
,
'hello_world'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'--show-test-device'
,
'attach'
,
'--release'
,
...
...
@@ -245,7 +235,6 @@ void main() {
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
'flutter'
);
final
ProcessResult
result
=
await
processManager
.
run
(<
String
>[
flutterBin
,
...
getLocalEngineArguments
(),
'update-packages'
,
'--crash'
,
],
environment:
<
String
,
String
>{
...
...
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