mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-06-09 11:50:00 +02:00
Added some helpful tools and configurations
This commit is contained in:
parent
5cbd4f3d95
commit
03ad413f4a
5 changed files with 53 additions and 6 deletions
|
@ -1,10 +1,37 @@
|
|||
Testing
|
||||
-------
|
||||
# Testing
|
||||
|
||||
Use `pytest` to run the tests in [the tests directory](qurator/dinglehopper/tests):
|
||||
~~~
|
||||
```bash
|
||||
virtualenv -p /usr/bin/python3 venv
|
||||
. venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
pip install pytest
|
||||
pip install -r requirements-dev.txt
|
||||
pytest
|
||||
~~~
|
||||
```
|
||||
|
||||
### Test running examples
|
||||
### Only unit tests
|
||||
```bash
|
||||
pytest -m "not integration"
|
||||
```
|
||||
|
||||
### Only integration tests
|
||||
```bash
|
||||
pytest -m integration
|
||||
```
|
||||
|
||||
### All tests
|
||||
```bash
|
||||
pytest
|
||||
```
|
||||
|
||||
### All tests with code coverage
|
||||
```bash
|
||||
pytest --cov=qurator --cov-report=html
|
||||
```
|
||||
|
||||
### Static code analysis
|
||||
```bash
|
||||
pytest -k "not test" --flake8
|
||||
pytest -k "not test" --mypy
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue