Skip to content

Commit dce8b4c

Browse files
authored
Merge pull request #16 from mgxd/tst/cov
add: testing coverage
2 parents b7d2fea + b1234cd commit dce8b4c

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.codecov.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage:
2+
range: "0...100"
3+
ignore:
4+
- "**/data"
5+
- "setup.py"

.coveragerc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
branch = True

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ install:
99
- pip install -U -e .[test]
1010

1111
script:
12-
- pytest -v --doctest-modules nitransforms
12+
- pytest -v --cov nitransforms --cov-config `pwd`/.coveragerc --cov-report xml:`pwd`/cov.xml --doctest-modules nitransforms
13+
14+
after_success:
15+
- codecov --file `pwd`/cov.xml --flags unittests -e TRAVIS_JOB_NUMBER

setup.cfg

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@ provides =
33
nitransforms
44

55
[options]
6-
python_requires = >= 2.7
6+
python_requires = >= 3.5
77
install_requires =
88
numpy
99
scipy
1010
nibabel
1111
h5py
1212
test_requires =
1313
pytest
14+
pytest-cov
1415
nose
16+
codecov
1517
packages = find:
1618
include_package_data = True
1719

1820
[options.extras_require]
1921
test =
2022
pytest
23+
pytest-cov
2124
nose
25+
codecov
2226
tests =
2327
%(test)s
2428
all =

0 commit comments

Comments
 (0)