Skip to content

Commit d4298ca

Browse files
authored
docs: describe the v test options VTEST_HIDE_OK and -progress in TESTS.md (#23635)
1 parent 0132814 commit d4298ca

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎TESTS.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,19 @@ NB 3: To run only some of the tests, use:
178178
`VTEST_ONLY=mismatch ./v vlib/v/compiler_errors_test.v`
179179
This will check only the .vv files, whose paths match the given filter.
180180

181+
NB 4: To run tests, but without printing status lines for all the successfull
182+
ones, use:
183+
`VTEST_HIDE_OK=1 ./v test vlib/math/`
184+
This will print only the total stats, and the failing tests, but otherwise
185+
it will be silent. It is useful, when you have hundreds or thousands of
186+
individual `_test.v` files, and you want to avoid scrolling.
187+
188+
NB 5: To show only *the currently running test*, use:
189+
`./v -progress test vlib/math/`
190+
In this mode, the output lines will be limited, no matter how many `_test.v`
191+
files there are. The output will contain the total stats and the output of
192+
the failing tests too.
193+
181194
## `.github/workflows/ci.yml`
182195

183196
This is a Github Actions configuration file, that runs various CI

0 commit comments

Comments
 (0)