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 again
pull/2/head
Vinayak Mehta 2018-10-02 20:41:11 +05:30
parent c5bde5e2ad
commit 9537143fe0
7 changed files with 10 additions and 11 deletions

View File

@ -1,6 +1,2 @@
[run]
branch = True
source = camelot
include = */camelot/*
omit =
*/setup.py
branch = True

View File

@ -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

View File

@ -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

View File

@ -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

View File

View File

View File

@ -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")