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

Coverage Visualization Not Refreshing Without File Re-Open #14

Open
TobiasvdVen opened this issue Jan 23, 2019 · 2 comments
Open

Coverage Visualization Not Refreshing Without File Re-Open #14

TobiasvdVen opened this issue Jan 23, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@TobiasvdVen
Copy link

TobiasvdVen commented Jan 23, 2019

After trying PrestoCoverage for the first time we think we are running into this issue in v1.16.2.

Our steps:

  • .NET Core 2.2 project in Visual Studio 2017
  • Import Coverlet via NuGet
  • Install PrestoCoverage
  • Press 'Run All' in Test Explorer
  • Coverage visualization shows up properly
  • As an example, we have the following block:
1 if (...)
2 {
3     // Do something
4 }
5 else
6 {
7     // This branch is not covered
8 }

The visualization is correct in this case, showing red in the margin on line 7.
Next, we comment out line 5, the else clause.
After pressing 'Run All' again, all visualization disappears.
It will not appear again until we close the .cs file in which we made these changes and re-open it.

Hope this information helps!

@IanIsFluent
Copy link

IanIsFluent commented Feb 16, 2019

Similar issues here!

@p10tyr
Copy link
Owner

p10tyr commented Mar 26, 2019

Will investigate. Its just the way Visual Studio handles panes.. its literately quite a pain to implement correctly.

@p10tyr p10tyr added the bug Something isn't working label Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants