-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description on how to run tests & build docs (#2500)
* readme tests * add note on make * add pool skipper * update Make docs * Apply suggestions from code review --------- Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3d52192
commit 01f2c4b
Showing
8 changed files
with
58 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Running tests locally | ||
|
||
To run the tests locally, you need to have the full development environment set up. This can be setup by running | ||
the following command in the root directory of the project: | ||
|
||
```bash | ||
pip install . -r requirements/_devel.txt | ||
``` | ||
|
||
Then for windows users, to execute the tests (unit tests and integration tests) run the following command (will only run non-DDP tests): | ||
|
||
```bash | ||
pytest tests/ | ||
``` | ||
|
||
For linux/Mac users you will need to provide the `-m` argument to indicate if `ddp` tests should also be executed: | ||
|
||
```bash | ||
pytest -m DDP tests/ # to run only DDP tests | ||
pytest -m "not DDP" tests/ # to run all tests except DDP tests | ||
``` | ||
|
||
## Simply Make | ||
|
||
Alternatively, for Unix with `make` installed, simply running `make test` from the root of the project will install | ||
all requirements and run the full test suit. | ||
|
||
## Test particular domain | ||
|
||
To run only unittests, point the command only to the `tests/unittests` directory. Similarly, to only run a subset of the | ||
unittests, like all tests related to the regression domain, run the following command: | ||
|
||
```bash | ||
pytest tests/unittests/regression/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters