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

Commit e4ea8d4

Browse files
authored
Add testing hints (#39868)
Add testing hints
1 parent b9bacc7 commit e4ea8d4

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

testing/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Engine Testing
2+
3+
This directory contains the infrastructure for running tests on the engine,
4+
which are most often run by Flutter's continuous integration (CI) systems.
5+
6+
The tests themselves are located in other directories, closer to the source for
7+
each platform, language, and variant. For instance, macOS engine unit tests
8+
written in objective C are located in the same directory as the source files,
9+
but with a `Test` suffix added (e.g. "FlutterEngineTest.mm" holds the tests for
10+
"FlutterEngine.mm", and they are located in the same directory).
11+
12+
## Testing the Engine locally
13+
14+
If you are working on the engine, you will want to be able to run tests locally.
15+
16+
In order to learn the details of how do that, please consult the [Flutter Wiki
17+
page](https://github.com/flutter/flutter/wiki/Testing-the-engine) on the
18+
subject.

testing/run_tests.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,12 @@ def run_engine_tasks_in_parallel(tasks):
947947

948948

949949
def main():
950-
parser = argparse.ArgumentParser()
950+
parser = argparse.ArgumentParser(
951+
description='''
952+
In order to learn the details of running tests in the engine, please consult the
953+
Flutter Wiki page on the subject: https://github.com/flutter/flutter/wiki/Testing-the-engine
954+
'''
955+
)
951956
all_types = [
952957
'engine', 'dart', 'benchmarks', 'java', 'android', 'objc', 'font-subset'
953958
]

0 commit comments

Comments
 (0)