Skip to content

Commit

Permalink
Merge pull request #1793 from ReactionMechanismGenerator/arkane_coverage
Browse files Browse the repository at this point in the history
Include Arkane in code coverage report
  • Loading branch information
alongd authored Nov 1, 2019
2 parents 0385f3a + 0032b9c commit a1f63f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
plugins = Cython.Coverage
branch = True
source =
arkane
Arkane.py
rmgpy
rmg.py
omit = *Test.py
omit =
*Test.py
*/test_data/*
arkane/data/*

[report]
show_missing = False
Expand All @@ -18,7 +23,13 @@ exclude_lines =
raise NotImplementedError
if 0:
if __name__ == .__main__.:
omit = *Test.py
include =
arkane/*
rmgpy/*
omit =
*Test.py
*/test_data/*
arkane/data/*

[html]
directory = testing/coverage
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ ifneq ($(OS),Windows_NT)
mkdir -p testing/coverage
rm -rf testing/coverage/*
endif
nosetests --nocapture --nologcapture --all-modules --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane
nosetests --nocapture --nologcapture --all-modules --verbose --with-coverage --cover-inclusive --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane

test test-unittests:
ifneq ($(OS),Windows_NT)
mkdir -p testing/coverage
rm -rf testing/coverage/*
endif
nosetests --nocapture --nologcapture --all-modules -A 'not functional' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane
nosetests --nocapture --nologcapture --all-modules -A 'not functional' --verbose --with-coverage --cover-inclusive --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane

test-functional:
ifneq ($(OS),Windows_NT)
Expand Down

0 comments on commit a1f63f3

Please sign in to comment.