-
-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
Description
Installed product versions
- Visual Studio: 2022, 17.11.4
- This extension: 1.1.223
Description
Trying to use FCC on a large solution. I've run the unit tests, but the Fine Code Coverage panel is blank (apart for toolbar).
On the Output panel, the FCC output shows a lot of problems, but does appear to generate text-based coverage percentages.
Steps to recreate
- I installed the latest version of the FCC extension
- Note: I don't know if I still have default settings (you can't tell because the Options shows everything as bold which usually means it has been modified). Is there a way to reset them?
- I run unit tests from Test Explorer on a C# class library
- I check the Fine Code Coverage window
Current behavior
FCC output panel shows exceptions
<snip>
024-10-17T14:02:59: Writing report file '<path>\Bin\Win64-Dll\debug\fine-code-coverage\coverage-tool-output\index.html'
2024-10-17T14:02:59: Report generation took 0.5 seconds
Fine Code Coverage 17/10/2024 2:02:59 PM: Processing cobertura
Fine Code Coverage 17/10/2024 2:03:00 PM: Processing report
Fine Code Coverage 17/10/2024 2:03:00 PM: ================================== DONE ==================================
Fine Code Coverage 17/10/2024 2:03:00 PM: Error creating tracked lines for C:\Users\<user>\AppData\Local\Temp\blpp14e4..cs
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at FineCodeCoverage.Editor.DynamicCoverage.ContainingCodeTrackedLinesBuilder.Create(List`1 lines, ITextSnapshot textSnapshot, String filePath)
at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.CreateTrackedLines(Boolean initial)
at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.TryCreateTrackedLines(Boolean initial)
Fine Code Coverage 17/10/2024 2:03:00 PM: Error creating tracked lines for Temp.txt
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at FineCodeCoverage.Editor.DynamicCoverage.ContainingCodeTrackedLinesBuilder.Create(List`1 lines, ITextSnapshot textSnapshot, String filePath)
at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.CreateTrackedLines(Boolean initial)
at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.TryCreateTrackedLines(Boolean initial)
Fine Code Coverage 17/10/2024 2:03:00 PM: Error creating tracked lines for Temp.txt
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at FineCodeCoverage.Editor.DynamicCoverage.ContainingCodeTrackedLinesBuilder.Create(List`1 lines, ITextSnapshot textSnapshot, String filePath)
at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.CreateTrackedLines(Boolean initial)
at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.TryCreateTrackedLines(Boolean initial)
Note: I can click on the Cobertura or Hotspot icons in the Fine Code Coverage panel and it opens XML reports.
I'll try to remember to send you an email with the log
Note: on a different, tiny solution, with no unit tests, the fine code coverage panel is at least showing the expected tabs.
Expected behavior
I should see no exceptions in the FCC output panel.
I should see my code coverage visual report in the Fine Code Coverage panel.
Side Notes
- It helps to attach a repro solution so i can test the fix
- It helps to attach the log (send it to my mailbox if you need todo so privately : fortunengwenya@gmail.com)
- It helps to attach a screen recoding video of steps to recreate (sometimes a video is worth a thousand words)
- Please consider giving this project a star and become one of the stagazers
https://github.com/FortuneN/FineCodeCoverage/stargazers - Please consider buying me a coffee
https://paypal.me/FortuneNgwenya (Once) OR https://liberapay.com/FortuneN/donate (Recurring) - Please consider rating and/or reviewing
https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage&ssr=false#review-details
Metadata
Metadata
Assignees
Labels
No labels