Skip to content

Commit 2187dd6

Browse files
authored
Merge pull request #21 from aaltat/coverage
Coverage report
2 parents b0e6608 + 45e7b75 commit 2187dd6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pytest
2+
pytest-cov
23
robotstatuschecker

utest/run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
atest_dir = join(curdir, '..', 'atest')
1111
python_version = platform.python_version()
1212
xunit_report = join(atest_dir, 'results', 'xunit-%s.xml' % python_version)
13-
sys.path.insert(0, join(curdir, '..', 'src'))
13+
src = join(curdir, '..', 'src')
14+
sys.path.insert(0, src)
1415
sys.path.insert(0, atest_dir)
1516
pytest_args = sys.argv[1:] + [
1617
'-p', 'no:cacheprovider',
1718
'--junitxml=%s' % xunit_report,
1819
'-o', 'junit_family=xunit2',
20+
'--cov=%s' % src,
1921
curdir
2022
]
2123
rc = pytest.main(pytest_args)

0 commit comments

Comments
 (0)