-
Notifications
You must be signed in to change notification settings - Fork 648
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
Drop in coverage of coordinates module #1433
Comments
There is a drop in coverage indeed, but it is very localized. I think we can live with it if the rest of the PR comes soon enough. For the record, here are the number of tests run by nose and by pytest per file. I ran nose on the commit
I get the distributions with the following commands: # For nose
./mda_nosetests --no-open-files --processes 2 --process-timeout 800 -v coordinates 2>&1 | tee log_nose
cat log_nose | grep -v SKIP | egrep -o 'testsuite\.MDAnalysisTests\.[^ )]+' | cut -f 4 -d . | sort | uniq -c > distrib_nose
# For pytest
pytest -v coordinates/ 2>&1 | tee log_pytest
cat log_pytest | grep -v SKIP | egrep '^coordinates/' | cut -f 1 -d . | cut -f 2 -d / | sort | uniq -c > distrib_pytest |
There is no need to look much into DCD. We are doing a complete rewrite of it right now anyway. |
@utkbansal I'd appreciate if you could prioritize this. |
@kain88-de I'm already working on it. There should be a PR by tomorrow! |
@kain88-de @richardjgowers @jbarnoud @mnmelo I'm stuck and need help with the test involving reference pattern. The normal convention I've been using so far isn't working for this. Currently, I'm trying to get it to give me the real stack traces and then I'll try to use fixtures to do this work. |
put up a PR then it's easier to talk about issues. |
Okay, I'll open up a PR for |
I can't find the reason for the drop in the number of tests collected in |
what does the coverage count say? |
@kain88-de Will check once I'm done with Are we sure that I dont need to work on the dcd tests? |
@utkbansal yes. I'm doing that in #1372. If you change anything now rebasing will be hell for me. |
Having the tests for dcd also doesn't matter much since we are rewriting this completely |
okay, don't want to create a mess for you. |
@kain88-de Only ran EDIT: |
Be careful that coverage is not enough of a metric. Multiple tests can cover the same code but test different things.By grepping the verbose output of the tests you should be able to identify the test functions that you may be missing. Le 28 juin 2017 2:40 PM, Utkarsh Bansal <notifications@github.com> a écrit :@kain88-de Only ran test_reader_api for coverage. There is a 2% drop!!
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
|
We have a drop in coverage for the coordinates module because my PR #1414 (for porting it to pytest) was merged by mistake.
It is to be noted that the error occurred because of coveralls showing a green signal even when it should have - there was an obvious drop in coverage. Maybe we need to look at how it is configured.
Solution
I will be opening a new PR soon to bring the coverage back to normal.
The text was updated successfully, but these errors were encountered: