Skip to content

Commit

Permalink
add test coverage and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oro13 committed Jan 1, 2021
1 parent aa3dfe7 commit 4b64986
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ blinker==1.4
certifi==2019.3.9
chardet==3.0.4
Click==7.0
coverage==5.3.1
Flask==1.0.3
Flask-Babel==0.12.2
Flask-Cors==3.0.8
Expand All @@ -31,6 +32,7 @@ py==1.10.0
Pygments==2.4.2
pyparsing==2.4.7
pytest==6.2.1
pytest-cov==2.10.1
pytest-flask==1.1.0
python-dateutil==2.8.0
python-dotenv==0.10.2
Expand Down
26 changes: 26 additions & 0 deletions api/tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
To conduct tests, go to the api folder and run (from the venv):

`python3 -m pytest`

for additional output:

`python3 -m pytest -v`

for even more output:

`python3 -m pytest -vv`

for test coverage:

`python3 -m pytest -v --cov=app`

normal pytest arguments work as well, placed before `--cov=app`.

See the docs for more information:

[pytest](https://pytest.org/en/latest/index.html)

[pytest-flask](https://pytest-flask.readthedocs.io)

[pytest-cov](https://pytest-flask.readthedocs.io)

0 comments on commit 4b64986

Please sign in to comment.