Skip to content

Commit 8527375

Browse files
committed
Use coverage only on the source, docs and tests dir
Remove .coveragerc file Make sure the unit tests are run on the development version, not the one installed in site-packages
1 parent 4f39659 commit 8527375

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.coveragerc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ script:
2222
# Install pygccxml
2323
- python setup.py install
2424
# Run the tests with coverage
25-
- coverage run unittests/test_all.py
25+
- coverage run --source=pygccxml,docs,unittests unittests/test_all.py
2626

2727
after_success:
2828
# Send coverage result to https://coveralls.io/r/gccxml/pygccxml

unittests/autoconfig.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
gccxml_version = '__GCCXML_09__'
2828

2929
sys.path.insert(0, os.path.join(os.curdir, '..'))
30+
# The tests are run on the parent pygccxml directory, not the one
31+
# in site-packages. Insert the directory's path.
32+
sys.path.insert(0, "../pygccxml")
3033
import pygccxml
3134
import pygccxml.declarations
3235
import pygccxml.parser

0 commit comments

Comments
 (0)