Update README.md
This commit is contained in:
26
README.md
26
README.md
@@ -417,19 +417,29 @@ waybackpy --url akamhy.github.io --user_agent "my-user-agent" --known_urls --sub
|
|||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
[Here](https://github.com/akamhy/waybackpy/tree/master/tests)
|
|
||||||
|
|
||||||
To run tests locally:
|
To run tests locally:
|
||||||
|
|
||||||
|
1) Install or update the testing/coverage tools
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -U pytest
|
pip install codecov pytest pytest-cov -U
|
||||||
pip install codecov
|
|
||||||
pip install pytest pytest-cov
|
|
||||||
cd tests
|
|
||||||
pytest --cov=../waybackpy
|
|
||||||
python -m codecov #For reporting coverage on Codecov
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2) Inside the repository run the following commands
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pytest --cov=waybackpy tests/
|
||||||
|
```
|
||||||
|
|
||||||
|
3) To report coverage run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bash <(curl -s https://codecov.io/bash) -t SECRET_CODECOV_TOKEN
|
||||||
|
```
|
||||||
|
|
||||||
|
You can find the tests [here](https://github.com/akamhy/waybackpy/tree/master/tests).
|
||||||
|
|
||||||
|
|
||||||
## Packaging
|
## Packaging
|
||||||
|
|
||||||
1. Increment version.
|
1. Increment version.
|
||||||
|
Reference in New Issue
Block a user