mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
clarify test running in docs
This commit is contained in:
parent
9e3517b480
commit
d411aba909
1 changed files with 12 additions and 3 deletions
|
@ -94,18 +94,27 @@ On Windows you'll need to list out the filenames manually.
|
|||
|
||||
## Running tests
|
||||
|
||||
From inside the source folder:
|
||||
You can run all tests at once. From the top level project folder:
|
||||
|
||||
```
|
||||
bazel test //...
|
||||
bazel test ...
|
||||
```
|
||||
|
||||
If you're in a subfolder, `...` will run the tests in that folder.
|
||||
To run all tests, use `//...` instead.
|
||||
|
||||
Pylint will currently fail if you're using Python 3.9.
|
||||
|
||||
To run a single Rust unit test with output, eg 'unbury':
|
||||
|
||||
```
|
||||
bazel run rslib:unit_tests -- --nocapture unbury
|
||||
```
|
||||
|
||||
To run a single Python library test, eg test_bury:
|
||||
|
||||
```
|
||||
bazel test //pylib:pytest --test_env=PYTEST=test_bury
|
||||
PYTEST=test_bury bazel run //pylib:pytest
|
||||
```
|
||||
|
||||
## Fixing formatting
|
||||
|
|
Loading…
Reference in a new issue