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

Comments

@lazka
Copy link

@lazka 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

This comment has been minimized.

Copy link
Owner

@nedbat nedbat commented Dec 21, 2019

I'll mark this a dup of #900.

@nedbat nedbat closed this Dec 21, 2019
nedbat added a commit that referenced this issue Dec 21, 2019
@nedbat nedbat added the duplicate label Dec 22, 2019
@nedbat

This comment has been minimized.

Copy link
Owner

@nedbat 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
Projects
None yet
2 participants
You can’t perform that action at this time.