Skip to content
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

Port coordinates module #1414

Merged
merged 5 commits into from
Jun 24, 2017
Merged

Port coordinates module #1414

merged 5 commits into from
Jun 24, 2017

Conversation

utkbansal
Copy link
Member

@utkbansal utkbansal commented Jun 21, 2017

As discussed, this is some ancient work and might involve a messy rebase.

This was the status back then:
PyTest - 1408 passed, 68 skipped
Nose - Ran 1675 tests in 172.808s OK (SKIP=64)

Partially Fixes #884

Changes made in this Pull Request:

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

@@ -16,7 +16,7 @@
from MDAnalysisTests.coordinates.base import (BaseReaderTest, BaseReference,
BaseWriterTest)
from MDAnalysisTests import tempdir, make_Universe

from numpy.testing import TestCase
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is numpy.testing.TestCase the same as unittest.TestCase?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it - https://github.com/numpy/numpy/blob/master/numpy/testing/__init__.py#L10
Should be able to just use unittest.TestCase in its place.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pleas use unittest.TestCase consistently then.

@utkbansal
Copy link
Member Author

It's interesting that the minimal build passes but the full build fails. From pytest's point of view, both should be the same.

@utkbansal
Copy link
Member Author

This should fix the error, but I expect coverage to drop.

@kain88-de
Copy link
Member

@utkbansal you should be able to see the combined coverage report off-line on your laptop as well. A good idea is also the use a coverage report (html best) of just the coordinates module from the develop branch and use that as a reference. Doing all of these tests locally will be much faster then waiting for travis.

@utkbansal
Copy link
Member Author

utkbansal commented Jun 22, 2017

Something fishy going on with coveralls. 🤔

@kain88-de
Copy link
Member

what do your offline tests show for the coverage?

@utkbansal
Copy link
Member Author

utkbansal commented Jun 22, 2017 via email

@kain88-de
Copy link
Member

Can you fix the coverage drop locally so you have the same pytest coverage as your nose reference?

@utkbansal
Copy link
Member Author

utkbansal commented Jun 22, 2017 via email

@kain88-de
Copy link
Member

That is not the first time coveralls has such hiccups. I'm not sure what is the reason for this. But we can still use the numbers to check for large drops in coverage.

@richardjgowers richardjgowers merged commit 01bd066 into MDAnalysis:develop Jun 24, 2017
@jbarnoud
Copy link
Contributor

Avoid "Partially Fixes" in PR descriptions: github does not know about "partially" and closes the referenced issue.

@utkbansal
Copy link
Member Author

utkbansal commented Jun 24, 2017

@richardjgowers @jbarnoud @kain88-de Woah, this wasn't supposed to be merged yet!

@jbarnoud
Copy link
Contributor

@utkbansal Do you think it hurts that it is merged? From what I see I do not think so, but maybe I am missing something. If not, let's just keep this here and you can continue your changes from there.

In the future, prefix the title of your PR with "[WIP]" to make clear it is not ready. If you can add label to PRs, you can also attach the "Work in progress" label. It is a bright right tag that should warn us that we should proceed with caution.

@utkbansal
Copy link
Member Author

utkbansal commented Jun 24, 2017

@jbarnoud There is a major drop in coverage! I don't have permission to add tags but will append WIP to the title of all future PRs.

@richardjgowers
Copy link
Member

Ah sorry, it had green lights. Open an issue for the drop in coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants