2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

Test flexibility (#4945)

* Add option to specify which tests to run in invoke test

* Add information on testing in CONTRIBUTING.md
This commit is contained in:
miggland
2023-06-01 15:54:06 +02:00
committed by GitHub
parent 4d9e92011e
commit 11c5ce5f80
2 changed files with 30 additions and 4 deletions

View File

@ -123,6 +123,18 @@ The InvenTree code base makes use of [GitHub actions](https://github.com/feature
The various github actions can be found in the `./github/workflows` directory
### Run tests locally
To run test locally, use:
```
invoke test
```
To run only partial tests, for example for a module use:
```
invoke test --runtest order
```
## Code Style
Sumbitted Python code is automatically checked against PEP style guidelines. Locally you can run `invoke style` to ensure the style checks will pass, before submitting the PR.