-
Notifications
You must be signed in to change notification settings - Fork 6
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
Automated Tests: Code Coverage and Standardized Test Infrastructure #13
Comments
I had added more tests a few months ago, and the screen output from the coverage command indicted 72% coverage: `---------- coverage: platform darwin, python 3.8.11-final-0 ----------
|
@elwinter I would suggest that you might spend one hour to try to fix that. It would be nice to have the correct coverage in the paper. |
Ok that is what I wanted to know. I will be working on that this weekend.
Thanks
Eric
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Patrick Diehl ***@***.***>
Sent: Friday, October 15, 2021 10:40:11 AM
To: elwinter/nnde ***@***.***>
Cc: Eric Winter ***@***.***>; Mention ***@***.***>
Subject: Re: [elwinter/nnde] Automated Tests: Code Coverage and Standardized Test Infrastructure (#13)
@elwinter<https://github.com/elwinter> I would suggest that you might spend one hour to try to fix that. It would be nice to have the correct coverage in the paper.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#13 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABSFWCY67CH2X44S4ZTDM2TUHA4MXANCNFSM5AKIOU2A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@elwinter I think we can close the issue since you fixed the coverage issue. |
Currently
pytest-cov
is reporting 38% code coverage, which is a little on the low side.It looks like some of the tests are implemented entirely in a
__main__
rather than inside the unittest scaffolding (e.g. nnde/differentialequation/examples/tests/test_diff1d_half.py), so this number could be artificially low at the moment.Recommendation: Implement tests inside a common unittest framework (unittest/nose/pytest) for consistent running and reporting.
Reproducing:
I checked against
pytest
withpytest-cov
to check code coverage.The text was updated successfully, but these errors were encountered: