-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
No coverage for async methods with RunMsCodeCoverage #270
Comments
No. As the coverage is not being collected by coverlet. I believe that the problem is due to the version of ReportGenerator that FCC is currently using. I am working on a feature branch https://github.com/tonyhallett/FineCodeCoverage/tree/webview2-reportgenerator-api that uses ReportGenerator 5.1.4 as a nuget reference compared to current that uses reportgenerator.exe 4.7.1. The feature branch does not have the issue. If you look in ...FCCAsyncTestIssue-master\FCCAsyncTestIssue-master\CoreLibrary.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output there is a Cobertura.xml file that ReportGenerator has generated from the ms cobertura.xml. You can see that the ms one is correct and the ReportGenerator one is not. This will be rectified once I complete and push the feature. If you need the fix now I can send you a vsix of the feature build but note the following: It relies upon WebView2. That you have the Evergreen Runtime installed https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution#the-evergreen-runtime-distribution-mode The report is not currently reflecting visual studio theming / environment fonts. The report does not currently have sticky tables. |
I'm not sure it's related to this issue but I got my async methods to be covered by changing the setting |
@JayOwl Are you using @tonyhallett Any chance to get a release with new feature? Or at least a prerelease to test 🙃 |
The new feature now has the necessary code for the WebView2 runtime so what remains is the styling of the react report. I should be able to complete this in the next two weeks. |
Sorry for noise. 🤗 Any news? It's pretty anoying to not see async function coverage. 😕 |
Has been fixed 1f040cb but.......... @FortuneN The new release is not my new feature of WebView2 + React report. This I will finish when I return from holiday. To have ms coverage async methods working we cannot just update to the latest report generator version that fixed danielpalme/ReportGenerator#467 as an earlier commit removed ie and hence WebBrowser control support - danielpalme/ReportGenerator@f801790 So I have forked the repo at 4.7.1 and added the single line of code that fixes async. This code is https://github.com/FortuneN/FineCodeCoverage/blob/master/Shared%20Files/ZippedTools/reportGenerator.4.7.2.zip and https://github.com/FortuneN/FineCodeCoverage/blob/master/Shared%20Files/ZippedTools/ReportGenerator.Core.dll So please update your access token ! |
Although the vsix marketplace release github action did not occur, the release action did. https://github.com/FortuneN/FineCodeCoverage/releases/tag/v1.1.181 So you can use |
will test it on Monday ❤️ |
Publish was skipped, so still missing on store |
https://github.com/FortuneN/FineCodeCoverage/runs/8188031339?check_suite_focus=true add to marketplace VSSDK: error VsixPub0031 : An error occurred while attempting to authenticate: VS30063: You are not authorized to access https://marketplace.visualstudio.com./ Once rectified the workflow cannot be re-run but needs to be triggered. Let me know when ready. Thanks |
https://github.com/FortuneN/FineCodeCoverage/releases/download/v1.1.184/FineCodeCoverage.vsix This release fixes generic classes with ms code coverage. |
If I'm not mistaken then, this release also includes fixing async methods, correct? It appears to be working for me now |
@kakins correct |
@FortuneN It's still not publishing to the store 😕 |
I've updated the token. |
@FortuneN At a later date can look at the actions further. |
@FortuneN Error: Error: Command failed: VsixPublisher.exe publish -payload D:\a\FineCodeCoverage\FineCodeCoverage\FineCodeCoverage\bin\Release\FineCodeCoverage.vsix -publishManifest D:\a\FineCodeCoverage\FineCodeCoverage\vs-market-place-manifest.json -personalAccessToken *** |
Not sure about that last 'comment' bit https://github.com/FortuneN/FineCodeCoverage/actions/runs/3077073438/jobs/4971676090 |
Thanks. I will kick off the process again. At a later date the workflows
can be revisited to support manual triggers.
…On Tue, 13 Sept 2022 at 12:04, Fortune Ngwenya ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/5636175/189885287-e5e38417-6106-4831-b8e7-14d3a60ac213.png>
I updated the token
—
Reply to this email directly, view it on GitHub
<#270 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWFCRUZEHNEEFNRZZ5JE3LV6BNUNANCNFSM5Y36PSMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Installed product versions
Description
Getting no coverage results for
async
methods withRunMsCodeCoverage
set toYes
.Steps to recreate
I created a simple solution that reproduces the issue for Framework and dotnet core project versions.
RunMsCodeCoverage
is set toYes
Current behavior
Only seeing coverage for synchronous methods in the coverage report and in the gutter in the editor. Seeing 3 covered lines for each test project in the report.
Expected behavior
See coverage for all methods in the coverage report and in the gutter in the editor. Should see 6 covered lines for each test project in the report.
Side Notes
ExcludeByAttribute
cleared out, I get the same result.Coverage Log
FCC Output
The text was updated successfully, but these errors were encountered: