Skip to content

Commit 23e9dae

Browse files
docs: very_good dart test (#1337)
Co-authored-by: Marcos Sevilla <[email protected]>
1 parent 38253d2 commit 23e9dae

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

site/docs/commands/test.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,21 @@ very_good test [arguments]
3131
Run "very_good help" to see global options.
3232
```
3333

34+
:::tip
35+
For **Dart** projects, use **`very_good dart test`** instead.
36+
37+
All test parameters and options work identically with this command.
38+
:::
39+
3440
### Passing Flutter specific arguments
3541

36-
The `flutter test` command exposes more arguments than those available through `very_good test`. Despite this, you can use the argument terminator `--` to signify the end of `very_good test` command options and the beginning of `flutter test` command options; making all `flutter test` arguments available!
42+
The `dart test` and `flutter test` commands expose more arguments than those available through `very_good dart test` or `very_good test`. However, you can use the argument terminator `--` to pass additional arguments directly to the underlying test commands. Any arguments after `--` will be forwarded to `dart test` or `flutter test`, making all their options available.
3743

3844
For example, if you wish to run `flutter test --no-track-widget-creation` you can simply use `very_good test -- --no-track-widget-creation`.
3945

4046
### Tests without pub install
4147

42-
Unlike `flutter test`, `very_good test` will always run your tests without installing the projects dependencies (i.e. `--no-pub` flag).
48+
Unlike `dart test` or `flutter test`, `very_good test` will always run your tests without installing the projects dependencies (i.e. `--no-pub` flag).
4349

4450
This is an optimization done by the CLI because dependency installation is usually run once after cloning the repository. Conversely, running tests locally is usually done many times and it's often unnecessary to re-install dependencies prior to each test run.
4551

site/docs/overview.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ very_good test --recursive
128128
very_good test -r
129129
```
130130

131+
:::tip
132+
For **Dart** projects, use **`very_good dart test`** instead.
133+
134+
All test parameters and options work identically with this command.
135+
:::
136+
131137
### `very_good --help`
132138

133139
See the complete list of commands and usage information.

0 commit comments

Comments
 (0)