Skip to content

Port coordinates module#1414

Merged
richardjgowers merged 5 commits into
MDAnalysis:developfrom
utkbansal:pytest
Jun 24, 2017
Merged

Port coordinates module#1414
richardjgowers merged 5 commits into
MDAnalysis:developfrom
utkbansal:pytest

Conversation

@utkbansal

@utkbansal utkbansal commented Jun 21, 2017

Copy link
Copy Markdown
Member

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?

BaseWriterTest)
from MDAnalysisTests import tempdir, make_Universe

from numpy.testing import TestCase

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@kain88-de

Copy link
Copy Markdown
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

utkbansal commented Jun 22, 2017

Copy link
Copy Markdown
Member Author

Something fishy going on with coveralls. 🤔

@kain88-de

Copy link
Copy Markdown
Member

what do your offline tests show for the coverage?

@utkbansal

utkbansal commented Jun 22, 2017 via email

Copy link
Copy Markdown
Member Author

@kain88-de

Copy link
Copy Markdown
Member

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

@utkbansal

utkbansal commented Jun 22, 2017 via email

Copy link
Copy Markdown
Member Author

@kain88-de

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@utkbansal

utkbansal commented Jun 24, 2017

Copy link
Copy Markdown
Member Author

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

@jbarnoud

Copy link
Copy Markdown
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

utkbansal commented Jun 24, 2017

Copy link
Copy Markdown
Member Author

@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
Copy Markdown
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