Skip flakey test for flutter customer tests (#6999)
diff --git a/packages/devtools_app/test/shared/eval_integration_test.dart b/packages/devtools_app/test/shared/eval_integration_test.dart
index 1bb3e3f..fe80515 100644
--- a/packages/devtools_app/test/shared/eval_integration_test.dart
+++ b/packages/devtools_app/test/shared/eval_integration_test.dart
@@ -4,6 +4,7 @@
import 'package:devtools_app/src/shared/globals.dart';
import 'package:devtools_app_shared/service.dart';
+import 'package:devtools_test/helpers.dart';
import 'package:flutter_test/flutter_test.dart';
import '../test_infra/flutter_test_driver.dart';
@@ -92,6 +93,9 @@
expect(instance.valueAsString, '42');
},
timeout: const Timeout.factor(2),
+ // TODO(https://github.com/flutter/devtools/issues/6998): if this flake
+ // is addressed, we can unskip this for the Flutter customer tests.
+ tags: skipForCustomerTestsTag,
);
test(
diff --git a/packages/devtools_test/lib/src/helpers/utils.dart b/packages/devtools_test/lib/src/helpers/utils.dart
index 8d6469d..f5f185b 100644
--- a/packages/devtools_test/lib/src/helpers/utils.dart
+++ b/packages/devtools_test/lib/src/helpers/utils.dart
@@ -12,6 +12,8 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:path/path.dart' as path;
+const skipForCustomerTestsTag = 'skip-for-flutter-customer-tests';
+
const shortPumpDuration = Duration(seconds: 1);
const safePumpDuration = Duration(seconds: 3);
const longPumpDuration = Duration(seconds: 6);
diff --git a/tool/flutter_customer_tests/README.md b/tool/flutter_customer_tests/README.md
new file mode 100644
index 0000000..1a9814f
--- /dev/null
+++ b/tool/flutter_customer_tests/README.md
@@ -0,0 +1,9 @@
+The scripts in this directory are used in the Flutter customer test registry
+[test](https://github.com/flutter/tests/blob/main/registry/flutter_devtools.test)
+for DevTools.
+
+If a test is flaky or needs to be skipped on the Flutter customer test run,
+skip the test case by adding the tag 'skip-for-flutter-customer-tests', which
+is defined in a const in
+[utils.dart](https://github.com/flutter/devtools/blob/master/packages/devtools_test/lib/src/helpers/utils.dart#L15)
+inside the `devtools_test` package.
diff --git a/tool/flutter_customer_tests/test.sh b/tool/flutter_customer_tests/test.sh
index 4df6f0a..ac6dc78 100755
--- a/tool/flutter_customer_tests/test.sh
+++ b/tool/flutter_customer_tests/test.sh
@@ -13,4 +13,4 @@
cd ../devtools_app
flutter pub get
-flutter test test/
+flutter test --exclude-tags=skip-for-flutter-customer-tests test/