Skip to content

Updating for coverage v4.4 #41

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

Closed
wants to merge 3 commits into from
Closed

Updating for coverage v4.4 #41

wants to merge 3 commits into from

Conversation

jonrkarr
Copy link

Coverage v4.4 changes how file names are reported in XML report files. For example

<class ... filename="karr_lab_build_utils/init.py" ... name="init.py">

is changed to

<class ... filename="init.py" ... name="init.py">

These commits update the test reporter to accommodate this change. The changes are compatible with v4.4 as well as earlier versions.

@dblandin
Copy link
Contributor

Hey @jonrkarr!

This PR looks great. Thanks for the fix!

Would you mind addressing the Code Climate issues? I'd be fine with removing the inline comments. The added lines seem sufficiently intention-revealing to me.

Is the new version of 0.2.1a0 considered an alpha release by pip? Since we'll release a new version, would 0.2.2 or 0.2.2a0 be more appropriate? In either case, we usually bump versions in separate PRs to keep the version history independent from changes merged into master.

@jonrkarr
Copy link
Author

jonrkarr commented May 11, 2017 via email

@dblandin
Copy link
Contributor

For cases with multiple source paths, the author author will need to add an id to sources/source so they can be linked to specific classes and file paths can be unambiguously be resolved.

That sounds like an important addition to make before supporting coverage v4.4 . Would you suggest locking down to <4.4 in the meantime while we figure that out?

We're also working on a new unified test reporter which will support python so I'm less concerned with the long-term maintainability of this particular repo.

https://github.com/codeclimate/test-reporter

@jonrkarr
Copy link
Author

jonrkarr commented May 11, 2017 via email

@dblandin
Copy link
Contributor

Had I read that first, I would have just specified a specific version for now until coveragepy sorts out this issue.

Yep, that sounds reasonable to me too. Going to close this PR for now.

Thanks!

@dblandin dblandin closed this May 11, 2017
@jonrkarr
Copy link
Author

jonrkarr commented May 11, 2017 via email

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

Successfully merging this pull request may close these issues.

3 participants