-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: figure out how to measure code coverage for unit test #29
Comments
I use codecov.io in selinon - see selinon/selinon#29 for a report example. It's easy to setup and gives nice stats. |
Oh very cool @fridex . Do you think it would be possible to use it in ./runtests.sh (let's say when I set some flag or environment variable)? It would be very nice to have such numbers in test reports :) |
I use a py.test extension pytest-cov ( see https://github.com/codecov/example-python#pytest for an example) where you specify just path to a python package [1]. I think this should be doable for api unit tests and for worker unit tests as well. We will need to register at codecov.io to get this. [1] https://github.com/selinon/selinon/blob/master/Makefile#L34 |
@tisnik I've added fabric8-analytics to codecov - any member from this org can access codecov just by signing in with GitHub account. Feel free to contact me if any issue spotted. EDIT: link is https://codecov.io/gh/fabric8-analytics |
IIRC the codecov.io is a site that just displays test results acquired from the local machine/Jenkins instance, right? So we still need to generate the report. I'll look at it. |
Yes, the report is aggregated locally but it is sent to codecov.io - see py.test plugins. Thanks! |
This issue was moved to openshiftio/openshift.io#837 |
No description provided.
The text was updated successfully, but these errors were encountered: