-
Notifications
You must be signed in to change notification settings - Fork 386
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 report missing one of the projects #1130
Comments
Right after I posted it I had an epiphany, decided to remove This is really weird, because I'm using Do you have any ideas on what could be the issue? |
So I just took a look into this. Seems that Without I played around with it a bit and it seems that changing debug type to full |
Thanks for looking into it @daveMueller! For curiosity sake, here's another project that uses Fody and Coverlet, but the coverage is collected properly: |
OK thanks I'll look into this again. Maybe coverlet really has an issue detecting embedded .pdb in some edge cases. |
Has there really been coverlet coverage with a Fody reference? When I run the test there is the same issue with the assembly (no module detected). Also when I check the last of your CI builds where all tests passed https://github.com/Tyrrrz/YoutubeExplode/runs/1811013194?check_suite_focus=true it was exactly the same. |
Interesting. I had looked at the report uploaded to Codecov, but after more careful inspection, it seems it has not been updated since 28th of November. I had absolutely no idea that was the case, turns out I had stale coverage statistics for close to half a year lol. I went back to the last commit that had actual coverage, which is
The coverage is collected correctly:
However, there is no The reason I used So to summarize:
It seems this is a problem on Fody's side, as you have identified earlier in this thread, so I will close the issue. Thanks a lot :) |
Hello 👋🏻
I thoroughly scanned open issues but couldn't find an answer to my problem. It feels like I'm missing something obvious but can't figure out what. 😩
I have the following project structure:
When running
dotnet test
, I get the following report:As you can see, for some reason, it only shows coverage for
MiniRazor.Runtime
, but notMiniRazor.Compiler
. The projects are not special in any particular way.Also, I was able to get Coverlet working perfectly well on numerous other projects, this is the only one that's giving me issues.
For reproduction purposes, here's the project: https://github.com/Tyrrrz/MiniRazor/tree/cc2c70bbbaf9ef43098fea40bb19993c6e454fd4 (note the commit hash, I've since made a workaround that fixes coverage, see next comment)
Just clone it and run
dotnet test
.Here's the latest build log from CI: https://github.com/Tyrrrz/MiniRazor/runs/2170799134?check_suite_focus=true
Any help is greatly appreciated 🙏🏻
The text was updated successfully, but these errors were encountered: