Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 20bb6e1

Browse files
committed
++
1 parent 909d756 commit 20bb6e1

4 files changed

Lines changed: 19 additions & 12 deletions

File tree

testing/scenario_app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ See also:
1818
- [`ios/`](ios/), the iOS-side native code and tests.
1919
- [`android/`](android/), the Android-side native code and tests.
2020

21-
[file_issue]: https://github.com/flutter/flutter/issues/new?labels=e:%20scenario-app,engine,platform-android,fyi-android,team-engine
21+
[file_issue]: https://github.com/flutter/flutter/issues/new?labels=e:%20scenario-app,engine,team-engine
2222

2323
## Running a smoke test on Firebase TestLab
2424

testing/scenario_app/bin/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ This directory contains code specific to running Android integration tests.
55
The tests are uploaded and run on the device using `adb`, and screenshots are
66
captured and compared using Skia Gold (if available, for example on CI).
77

8+
See also:
9+
10+
- [File an issue][file_issue] with the `e: scenario-app, platform-android`
11+
labels.
12+
13+
[file_issue]: https://github.com/flutter/flutter/issues/new?labels=e:%20scenario-app,engine,platform-android,fyi-android,team-engine
14+
815
## Usage
916

1017
```sh

testing/scenario_app/bin/utils/adb_logcat_filtering.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,23 @@ extension type const AdbLogLine._(Match _match) {
7777
}
7878

7979
@visibleForTesting
80-
static const Set<String> kKnownNoiseTags = <String>{
80+
static const Set<String> knownNoiseTags = <String>{
8181
'MonitoringInstr',
8282
'ResourceExtractor',
83-
'THREAD_STATE',
8483
'ziparchive',
8584
};
8685

8786
@visibleForTesting
88-
static const Set<String> kKnownUsefulGeneralTags = <String>{
87+
static const Set<String> knownUsefulTags = <String>{
8988
'utter.scenario',
9089
'utter.scenarios',
9190
'TestRunner',
9291
};
9392

9493
@visibleForTesting
95-
static const Set<String> kKnownUsefulErrorTags = <String>{
94+
static const Set<String> knownUsefulErrorTags = <String>{
9695
'androidemu',
96+
'THREAD_STATE',
9797
};
9898

9999
/// Returns `true` if the log line is verbose.
@@ -109,15 +109,15 @@ extension type const AdbLogLine._(Match _match) {
109109
return false;
110110
}
111111

112-
if (kKnownNoiseTags.contains(name)) {
112+
if (knownNoiseTags.contains(name)) {
113113
return false;
114114
}
115115

116-
if (kKnownUsefulGeneralTags.contains(name)) {
116+
if (knownUsefulTags.contains(name)) {
117117
return true;
118118
}
119119

120-
if (severity == 'E' && kKnownUsefulErrorTags.contains(name)) {
120+
if (severity == 'E' && knownUsefulErrorTags.contains(name)) {
121121
return true;
122122
}
123123

testing/scenario_app/test/adb_log_filter_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void main() {
3232
test('should never retain debug logs', () {
3333
final FakeAdbLogcat logcat = FakeAdbLogcat();
3434
final FakeAdbProcess process = logcat.withProcess();
35-
final String tag = AdbLogLine.kKnownNoiseTags.first;
35+
final String tag = AdbLogLine.knownNoiseTags.first;
3636
process.debug(tag, 'A debug message');
3737

3838
final Iterable<String> filtered = filter(logcat.drain());
@@ -42,7 +42,7 @@ void main() {
4242
test('should never retain logs from known "noise" tags', () {
4343
final FakeAdbLogcat logcat = FakeAdbLogcat();
4444
final FakeAdbProcess process = logcat.withProcess();
45-
final String tag = AdbLogLine.kKnownNoiseTags.first;
45+
final String tag = AdbLogLine.knownNoiseTags.first;
4646
process.info(tag, 'Flutter flutter flutter');
4747

4848
final Iterable<String> filtered = filter(logcat.drain());
@@ -52,7 +52,7 @@ void main() {
5252
test('should always retain logs from known "useful" tags', () {
5353
final FakeAdbLogcat logcat = FakeAdbLogcat();
5454
final FakeAdbProcess process = logcat.withProcess();
55-
final String tag = AdbLogLine.kKnownUsefulGeneralTags.first;
55+
final String tag = AdbLogLine.knownUsefulTags.first;
5656
process.info(tag, 'A useful message');
5757

5858
final Iterable<String> filtered = filter(logcat.drain());
@@ -83,7 +83,7 @@ void main() {
8383
test('should retain E-level flags from known "useful" error tags', () {
8484
final FakeAdbLogcat logcat = FakeAdbLogcat();
8585
final FakeAdbProcess process = logcat.withProcess();
86-
final String tag = AdbLogLine.kKnownUsefulErrorTags.first;
86+
final String tag = AdbLogLine.knownUsefulErrorTags.first;
8787
process.error(tag, 'An error message');
8888
process.info(tag, 'An info message');
8989

0 commit comments

Comments
 (0)