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
6cf5dbe3
Unverified
Commit
6cf5dbe3
authored
Aug 10, 2023
by
Michael Goderbauer
Committed by
GitHub
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Analyze code snippets in integration_test docs (#132314)
parent
5df1c996
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
analyze_snippet_code.dart
dev/bots/analyze_snippet_code.dart
+2
-0
integration_test.dart
packages/integration_test/lib/integration_test.dart
+2
-2
integration_test_driver_extended.dart
...ntegration_test/lib/integration_test_driver_extended.dart
+2
-1
No files found.
dev/bots/analyze_snippet_code.dart
View file @
6cf5dbe3
...
...
@@ -72,6 +72,7 @@ import 'package:watcher/watcher.dart';
final
String
_flutterRoot
=
path
.
dirname
(
path
.
dirname
(
path
.
dirname
(
path
.
fromUri
(
Platform
.
script
))));
final
String
_packageFlutter
=
path
.
join
(
_flutterRoot
,
'packages'
,
'flutter'
,
'lib'
);
final
String
_packageFlutterTest
=
path
.
join
(
_flutterRoot
,
'packages'
,
'flutter_test'
,
'lib'
);
final
String
_packageIntegrationTest
=
path
.
join
(
_flutterRoot
,
'packages'
,
'integration_test'
,
'lib'
);
final
String
_defaultDartUiLocation
=
path
.
join
(
_flutterRoot
,
'bin'
,
'cache'
,
'pkg'
,
'sky_engine'
,
'lib'
,
'ui'
);
final
String
_flutter
=
path
.
join
(
_flutterRoot
,
'bin'
,
Platform
.
isWindows
?
'flutter.bat'
:
'flutter'
);
...
...
@@ -151,6 +152,7 @@ Future<void> main(List<String> arguments) async {
flutterPackages
=
<
Directory
>[
Directory
(
_packageFlutter
),
Directory
(
_packageFlutterTest
),
Directory
(
_packageIntegrationTest
),
// TODO(goderbauer): Add all other packages.
];
}
...
...
packages/integration_test/lib/integration_test.dart
View file @
6cf5dbe3
...
...
@@ -326,9 +326,9 @@ https://flutter.dev/docs/testing/integration-tests#testing-on-firebase-test-lab
///
/// Future<void> main() {
/// return integrationDriver(
/// responseDataCallback: (data) async {
/// responseDataCallback: (
Map<String, dynamic>?
data) async {
/// if (data != null) {
/// for (
var
entry in data.entries) {
/// for (
final MapEntry<String, dynamic>
entry in data.entries) {
/// print('Writing ${entry.key} to the disk.');
/// await writeResponseData(
/// entry.value as Map<String, dynamic>,
...
...
packages/integration_test/lib/integration_test_driver_extended.dart
View file @
6cf5dbe3
...
...
@@ -20,13 +20,14 @@ import 'common.dart';
/// ```dart
/// import 'dart:async';
///
/// import 'package:flutter_driver/flutter_driver.dart';
/// import 'package:integration_test/integration_test_driver_extended.dart';
///
/// Future<void> main() async {
/// final FlutterDriver driver = await FlutterDriver.connect();
/// await integrationDriver(
/// driver: driver,
/// onScreenshot: (String
screenshotName, List<int> screenshotBytes
) async {
/// onScreenshot: (String
name, List<int> image, [Map<String, Object?>? args]
) async {
/// return true;
/// },
/// );
...
...
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