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
1b981a68
Unverified
Commit
1b981a68
authored
Jun 15, 2021
by
Jonah Williams
Committed by
GitHub
Jun 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] tweak README (#84648)
parent
a2336e9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
README.md
packages/flutter_tools/README.md
+9
-6
No files found.
packages/flutter_tools/README.md
View file @
1b981a68
...
...
@@ -42,7 +42,8 @@ Tests live under the `test/` subdirectory.
-
Hermetic unit tests of tool internals go under
`test/general.shard`
.
-
Tests of tool commands go under
`test/commands.shard`
. Hermetic tests go under
its
`hermetic/`
subdirectory. Non-hermetic tests go under its
`permeable`
sub-directory.
sub-directory. Avoid adding tests here and prefer writing either a unit test or a full
integration test.
-
Integration tests (e.g. tests that run the tool in a subprocess) go under
`test/integration.shard`
.
...
...
@@ -66,18 +67,20 @@ flutter test test/integration.shard/some_test_case
### Running the tests
To run
the tests in the
`test/`
directory
:
To run
all of the unit tests
:
```
shell
$
flutter
test
$
flutter
test
test
/general.shard
```
The tests in
`test/integration.shard`
are slower to run than the tests in
`test/general.shard`
. Depending on your development computer, you might
want to increase timeouts and limit concurrency.
want to increase timeouts and limit concurrency. Generally it is easier to run
these on CI, or to manually verify the behavior you are changing instead of running
the test.
The integration tests also require the
`FLUTTER_ROOT`
environment variable
to be set.
The full invocation to run everything might therefore look something like:
to be set. The full invocation to run everything might therefore look something like:
```
shell
$ FLUTTER_ROOT
=
~/path/to/flutter-sdk
...
...
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