Repository navigation
[TOOL] Code coverage in CI - #296
vlad-perevezentsev wants to merge 20 commits into
Conversation
PokhodenkoSA
left a comment
There was a problem hiding this comment.
@vlad-perevezentsev
Please fix small remarks and try to investigate this:
Coverage statistics reporting failed
Traceback (most recent call last):
File "$PREFIX/lib/python3.7/site-packages/teamcity_messages-1.25-py3.7.egg/teamcity/pytest_plugin.py", line 371, in pytest_terminal_summary
self._report_coverage()
File "$PREFIX/lib/python3.7/site-packages/teamcity_messages-1.25-py3.7.egg/teamcity/pytest_plugin.py", line 378, in _report_coverage
from coverage.report import Reporter
ImportError: cannot import name 'Reporter' from 'coverage.report' ($PREFIX/lib/python3.7/site-packages/coverage/report.py)
|
Blocked by SAT-3964. Waiting for coverage package on internal CI. |
|
@PokhodenkoSA |
As mentioned in the issue omit is supported via configuration file of coverage and author of the issue do not want to add new config file in his repo. We allow adding config files. It is convenient to make tolls work the same way for all developers. pytest-cov does not support omit, but it calls coverage which does support. You just used wrong config file. |
|
Issues with no description are unacceptable. Please indicate what this is PR attempts to solve, how to see that the PR does address the problem, etc. |
|
Suggested wording: Added support for test code coverage measuring by |
PokhodenkoSA
left a comment
There was a problem hiding this comment.
Please, fix small remarks.
| set -x | ||
|
|
||
| pytest -q -ra --disable-warnings --pyargs numba_dppy -vv | ||
| pytest -q -ra --disable-warnings --cov numba_dppy --cov-report term-missing --pyargs numba_dppy -vv |
There was a problem hiding this comment.
Please, try to use config file for these arguments.
There was a problem hiding this comment.
Type of report cannot be specified in .coveragerc
… code_coverage
… code_coverage
… code_coverage
… code_coverage
… code_coverage
|
Moved all parts except for recipe modification into #561. |
| - setuptools | ||
| - cython | ||
| - numpy=1.20* | ||
| - numba 0.54*|0.55* |
There was a problem hiding this comment.
I added this because numba-dppy didn't support numpy 1.21.
I will delete the last commit.
| @@ -12,10 +12,6 @@ precision = 2 | |||
| omit = | |||
There was a problem hiding this comment.
What this change for?
There was a problem hiding this comment.
It shouldn't be here
… code_coverage
c1b2a0e to
553def4
Compare
|
closing as the running coverage in recipe is not required and we have coverage generation using public CI. |
Added support for test code coverage measuring by
pytestrun for thenumpy-dpex.