Skip to content

Commit

Permalink
coverage measurement during test
Browse files Browse the repository at this point in the history
  • Loading branch information
KissPeter committed Feb 11, 2020
1 parent 8b73ddd commit 4adc033
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ ENV/

.idea
kittylogs
/.pytest_cache/
/coverage_html_report/
6 changes: 5 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ build:
idle_timeout: 10
test:
commands:
- command: 'pytest --durations=10 --show-capture=stdout -v -rP test'
- command: 'pytest --cov-report term --cov=apifuzzer --durations=10 --show-capture=stdout -vv -rP test'
on_node: 1
idle_timeout: 10
coverage:
file: '.coverage'
config_file: '.coveragerc'
format: 'py-cc'
filter:
excluded_paths:
- "test/"
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ script:
- python fuzzer.py -h
- pip3 install -r test/requirements_for_test.txt
- python3 test/test_application.py&
- pytest --durations=10 --show-capture=stdout -vv -rP test
- pytest --cov-report term --cov=apifuzzer --durations=10 --show-capture=stdout -vv -rP test
11 changes: 6 additions & 5 deletions test/requirements_for_test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Flask==1.0.1
pytest==3.6.3
pytest-cov==2.5.1
sphinx
Flask==1.1.1
pytest==5.3.5
pytest-cov==2.8.1
sphinx==2.4.1
sphinx_rtd_theme
psutil
pytest-html==2.0.1
coverage==5.0.3

0 comments on commit 4adc033

Please sign in to comment.