Browse Source

Add coverage to pytest

pull/1/head
Dashie der otter 1 year ago
parent
commit
a9683827ee
4 changed files with 5 additions and 1 deletions
  1. 2
    0
      .coveragerc
  2. 1
    0
      .gitignore
  3. 1
    1
      setup.cfg
  4. 1
    0
      setup.py

+ 2
- 0
.coveragerc View File

@@ -0,0 +1,2 @@
[run]
omit = tests/*

+ 1
- 0
.gitignore View File

@@ -12,3 +12,4 @@
/.eggs
/configtest.py
/errors_app.log
.coverage

+ 1
- 1
setup.cfg View File

@@ -2,5 +2,5 @@
test=pytest

[tool:pytest]
addopts = --verbose
addopts = --verbose --cov=.
python_files = tests/*.py

+ 1
- 0
setup.py View File

@@ -45,6 +45,7 @@ setup(
],
tests_require=[
'pytest',
'pytest-cov',
'jsonschema'
],
)

Loading…
Cancel
Save