Browse Source

Add coverage to pytest

Dashie der otter 4 months 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 @@
1
+[run]
2
+omit = tests/*

+ 1
- 0
.gitignore View File

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

+ 1
- 1
setup.cfg View File

@@ -2,5 +2,5 @@
2 2
 test=pytest
3 3
 
4 4
 [tool:pytest]
5
-addopts = --verbose
5
+addopts = --verbose --cov=.
6 6
 python_files = tests/*.py

+ 1
- 0
setup.py View File

@@ -45,6 +45,7 @@ setup(
45 45
     ],
46 46
     tests_require=[
47 47
         'pytest',
48
+        'pytest-cov',
48 49
         'jsonschema'
49 50
     ],
50 51
 )

Loading…
Cancel
Save