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

Contexts in reports are missing with relative_files=True #899

Closed
lazka opened this issue Dec 20, 2019 · 2 comments
Closed

Contexts in reports are missing with relative_files=True #899

lazka opened this issue Dec 20, 2019 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@lazka
Copy link

lazka commented Dec 20, 2019

Describe the bug

When I enable relative_files the json and html reports no longer contain context information. I still see context info in the sqlite DB though.

To Reproduce

  • coverage.py 5.0, py3.7.5
  • Set relative_files=True
  • python3 -m pytest --cov --cov-context=test tests/test_foo.py
  • python3 -m coverage html --show-contexts
  • HTML report doesn't include any context infos

Expected behavior

HTML report contains context infos

@nedbat
Copy link
Owner

nedbat commented Dec 21, 2019

I'll mark this a dup of #900.

@nedbat nedbat closed this as completed Dec 21, 2019
nedbat added a commit that referenced this issue Dec 21, 2019
@nedbat nedbat added the duplicate This issue or pull request already exists label Dec 22, 2019
@nedbat
Copy link
Owner

nedbat commented Dec 22, 2019

This is now available in coverage==5.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants