Add pytest-cov
Add fix for coverage Add source and omit to coveragerc Update coveragerc Update coveragerc Add source to coveragerc Update coveragerc source Add init to tests Fix ImportError Fix ImportError againpull/2/head
parent
c5bde5e2ad
commit
9537143fe0
|
|
@ -1,6 +1,2 @@
|
|||
[run]
|
||||
branch = True
|
||||
source = camelot
|
||||
include = */camelot/*
|
||||
omit =
|
||||
*/setup.py
|
||||
branch = True
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
sudo: false
|
||||
language: python
|
||||
cache: pip
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.6"
|
||||
|
|
@ -7,6 +9,6 @@ before_install:
|
|||
install:
|
||||
- pip install ".[dev]"
|
||||
script:
|
||||
- pytest
|
||||
- pytest --verbose --cov-config .coveragerc --cov-report term --cov-report xml --cov=camelot tests
|
||||
after_success:
|
||||
- codecov
|
||||
- codecov --verbose
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
codecov==2.0.15
|
||||
pytest==3.8.0
|
||||
pytest-cov==2.6.0
|
||||
pytest-runner==4.2
|
||||
Sphinx==1.7.9
|
||||
Sphinx==1.7.9
|
||||
|
|
@ -2,5 +2,5 @@
|
|||
test=pytest
|
||||
|
||||
[tool:pytest]
|
||||
addopts = --verbose
|
||||
python_files = tests/test_*.py
|
||||
addopts = --verbose --cov-config .coveragerc --cov-report term --cov-report xml --cov=camelot tests
|
||||
python_files = tests/test_*.py
|
||||
|
|
@ -6,7 +6,7 @@ import pandas as pd
|
|||
|
||||
import camelot
|
||||
|
||||
from test_data import *
|
||||
from .data import *
|
||||
|
||||
testdir = os.path.dirname(os.path.abspath(__file__))
|
||||
testdir = os.path.join(testdir, "files")
|
||||
|
|
|
|||
Loading…
Reference in New Issue