Skip to content

Commit

Permalink
docs: describe the v test options VTEST_HIDE_OK and -progress i…
Browse files Browse the repository at this point in the history
…n TESTS.md (#23635)
  • Loading branch information
spytheman authored Feb 2, 2025
1 parent 0132814 commit d4298ca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions TESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,19 @@ NB 3: To run only some of the tests, use:
`VTEST_ONLY=mismatch ./v vlib/v/compiler_errors_test.v`
This will check only the .vv files, whose paths match the given filter.

NB 4: To run tests, but without printing status lines for all the successfull
ones, use:
`VTEST_HIDE_OK=1 ./v test vlib/math/`
This will print only the total stats, and the failing tests, but otherwise
it will be silent. It is useful, when you have hundreds or thousands of
individual `_test.v` files, and you want to avoid scrolling.

NB 5: To show only *the currently running test*, use:
`./v -progress test vlib/math/`
In this mode, the output lines will be limited, no matter how many `_test.v`
files there are. The output will contain the total stats and the output of
the failing tests too.

## `.github/workflows/ci.yml`

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

0 comments on commit d4298ca

Please sign in to comment.