From 5ceecb54cb7958be5e94ff26ff7f69ce3a65bf5b Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Mon, 27 Feb 2023 15:30:59 -0800 Subject: [PATCH 1/3] Add testing hints --- testing/run_tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/run_tests.py b/testing/run_tests.py index 0eed650501d4b..37f9389938604 100755 --- a/testing/run_tests.py +++ b/testing/run_tests.py @@ -947,7 +947,12 @@ def run_engine_tasks_in_parallel(tasks): def main(): - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser( + description=''' +In order to learn the details of running tests in the engine, please consult the +Flutter Wiki page on the subject: https://github.com/flutter/flutter/wiki/Testing-the-engine +''' + ) all_types = [ 'engine', 'dart', 'benchmarks', 'java', 'android', 'objc', 'font-subset' ] From 62e62517a6a8f5b5b603c844a887cf34c8b10dad Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Mon, 27 Feb 2023 15:32:53 -0800 Subject: [PATCH 2/3] Add README --- testing/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testing/README.md diff --git a/testing/README.md b/testing/README.md new file mode 100644 index 0000000000000..f3c65cdd87393 --- /dev/null +++ b/testing/README.md @@ -0,0 +1,18 @@ +# Engine Testing + +This directory contains the infrastructure for running tests on the engine, +which are most often run by Flutter's continuous integration (CI) systems. + +The tests themselves are located in other directories, closer to the source for +each platform, language, and variant. For instance, macOS engine unit tests +written in objective C are located in the same directory as the source files, +but with a `Test` suffix added (e.g. "FlutterEngineTest.mm" holds the tests for +"FlutterEngine.mm", and they are located in the same directory). + +## Testing the Engine locally + +If you are working on the engine, you will want to be able to run tests locally. + +In order to learn the details of how do that, please consult the [Flutter Wiki +page](https://github.com/flutter/flutter/wiki/Testing-the-engine) on the +subject. From 9b6c7d1afb9626e206217ef047daaf4510dd03f0 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Mon, 27 Feb 2023 15:33:43 -0800 Subject: [PATCH 3/3] Fix quotes --- testing/run_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/run_tests.py b/testing/run_tests.py index 37f9389938604..9961cd1e53fe9 100755 --- a/testing/run_tests.py +++ b/testing/run_tests.py @@ -948,10 +948,10 @@ def run_engine_tasks_in_parallel(tasks): def main(): parser = argparse.ArgumentParser( - description=''' + description=""" In order to learn the details of running tests in the engine, please consult the Flutter Wiki page on the subject: https://github.com/flutter/flutter/wiki/Testing-the-engine -''' +""" ) all_types = [ 'engine', 'dart', 'benchmarks', 'java', 'android', 'objc', 'font-subset'