-
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
The path is empty. (Parameter 'path') #775
Comments
Hi Adam, thank's for reporting this, can you try to generate a small repro? @daveMueller seem an issue here https://github.com/tonerdo/coverlet/blob/master/src/coverlet.core/Reporters/CoberturaReporter.cs#L166 do you have any idea?
Warnings are ok...we cannot instrument dll without local source so they're expected. |
Never mind...you're on .NET Framework not .NET Core one. |
@Adam-RapidRTC can you try to run in debug mode and tell me if the issue is still present? Are you able to create a small repro? |
@MarcoRossignoli I will see if I can carve out some time today and create a sample repo that recreates the problem. |
Thanks a lot! |
Yes seems the |
@daveMueller @MarcoRossignoli - Sorry for the delay but I'll work on getting that demo repo up for you today. |
No prob no rush at your pace, thanks. |
@Adam-RapidRTC any news? |
Any update about this issue? |
@NerdBrez Are you facing the same issue with cobertura report? Could you create a small repro? |
Yes, I'm trying to generate a report on my xUnit test. The test project references an .Net framework 4.7.2 web application and performs 8 tests on some MVC controllers. dotnet test lqe.web.test --framework net472 --no-build /p:CollectCoverage=true /p:CoverletOutput=../TestResults/Coverage/ /p:MergeWith="../TestResults/Coverage/coverage.json" /p:CoverletOutputFormat="cobertura,json" -m:1 C:\Repos\Lqe\Code\Lqe\packages\coverlet.msbuild.2.9.0\build\coverlet.msbuild.targets(31,5): warning : [coverlet] BadImageFormatException during MetadataReaderProvider.FromPortablePdbStream in InstrumentationHelper.PortablePdbHasLocalSource, unable to check if module has got local source. [C:\Repos\Lqe\Code\Lqe\lqe.web.test\Lqe.Web.Test.csproj] Démarrage de l'exécution de tests, patientez... Réussi! - Failed: 0, Passed: 8, Skipped: 0, Total: 8, Duration: 1 s- Lqe.Web.Test.dll (net472) Calculating coverage result... |
Ok thanks. @NerdBrez can you share/attach your project to this issue? Or at least the parts that lead to this issue (maybe the controllers and the tests or so). Otherwise I will try to set up a sample to reproduce this. |
Today I set up an MVC project with 4.7.2 framework and XUnit 2.4.1 unit tests. Unfortunately everything worked without a problem and I couldn't reproduce the issue described above. A small sample project that has the same error would help a lot. |
Hello, |
Cool thanks for the info. I will give it a try with a additional VB class library in the solution. I'm currently really busy so it could take a couple of days to test this 🙏. |
The hint with the VB project that @NerdBrez provided was worth its weight. I set up a solution with an MVC project with XUnit and a VB class library project that let me reproduce this error. Here is the repo => https://github.com/daveMueller/coverlet775 Up to now I didn't find the time to debug into this but I will in the next days. Just to let you know that we are still on this. And at least we have a repro now 😉. |
The issue is the In Visual Basic the compiler injects the Maybe there are also other scenarios where a sequence point doesn't have a reference to a source file that we haven't encountered yet. So I created a PR that excludes code like this within an assembly. |
By the way I updated the repro to be a lot smaller than the first implementation (https://github.com/daveMueller/coverlet775). |
hi. this issue is still open, but is there a workaround? I am hitting the same problem with an old vb project I converted to sdk style |
Hi @sebastianslutzky, I worked on the PR again and think it fixes the issue. I compiled the source locally and I would be happy if someone could give it try with the packages attached here. |
Hi @daveMueller, I got the "The path is empty. (Parameter 'path')" when I use coverlet.console 3.2.0 in my test projects. I tried replace the files using your package and the error is gone!. When this fix will be officially released? |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [coverlet.collector](https://togithub.com/coverlet-coverage/coverlet) | nuget | major | `3.2.0` -> `6.0.0` | --- ### Release Notes <details> <summary>coverlet-coverage/coverlet</summary> ### [`v6.0.0`](https://togithub.com/coverlet-coverage/coverlet/releases/tag/v6.0.0) Fixed \-Could not write lines to file CoverletSourceRootsMapping - in use by another process[https://github.com/coverlet-coverage/coverlet/issues/1155](https://togithub.com/coverlet-coverage/coverlet/issues/1155)5 -Incorrect coverage for methods returning IAsyncEnumerable in generic classes[https://github.com/coverlet-coverage/coverlet/issues/1383](https://togithub.com/coverlet-coverage/coverlet/issues/1383)3 -Wrong branch coverage for async methods .NET Standard 1.x[https://github.com/coverlet-coverage/coverlet/issues/1376](https://togithub.com/coverlet-coverage/coverlet/issues/1376)6 -Empty path exception in visual basic projects[https://github.com/coverlet-coverage/coverlet/issues/775](https://togithub.com/coverlet-coverage/coverlet/issues/775)5 -Allign published nuget package version to github release version[https://github.com/coverlet-coverage/coverlet/issues/1413](https://togithub.com/coverlet-coverage/coverlet/issues/1413)3 \-Sync nuget and github release version[https://github.com/coverlet-coverage/coverlet/issues/1122](https://togithub.com/coverlet-coverage/coverlet/issues/1122)22 Improvements \-Migration of the project to .NET 6.0[https://github.com/coverlet-coverage/coverlet/pull/1473](https://togithub.com/coverlet-coverage/coverlet/pull/1473)3 Breaking changes New parameter ExcludeAssembliesWithoutSources to control automatic assembly exclusion [https://github.com/coverlet-coverage/coverlet/issues/1164](https://togithub.com/coverlet-coverage/coverlet/issues/1164). The parameter InstrumentModulesWithoutLocalSources has been removed. since it can be handled by setting ExcludeAssembliesWithoutSources to None. The default heuristics for determining whether to instrument an assembly has been changed. In previous versions any missing source file was taken as a signal that it was a third-party project that shouldn't be instrumented, with exceptions for some common file name patterns for source generators. Now only assemblies where no source files at all can be found are excluded from instrumentation, and the code for detecting source generator files have been removed. To get back to the behaviour that at least one missing file is sufficient to exclude an assembly, set ExcludeAssembliesWithoutSources to MissingAny, or use assembly exclusion filters for more fine-grained control. [Diff between 3.2.0 and 6.0.0](https://togithub.com/coverlet-coverage/coverlet/compare/v5.7.2...v6.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/cythral/brighid-commands). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzUuOTcuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [coverlet.collector](https://togithub.com/coverlet-coverage/coverlet) | nuget | major | `3.2.0` -> `6.0.0` | --- ### Release Notes <details> <summary>coverlet-coverage/coverlet</summary> ### [`v6.0.0`](https://togithub.com/coverlet-coverage/coverlet/releases/tag/v6.0.0) Fixed \-Could not write lines to file CoverletSourceRootsMapping - in use by another process[https://github.com/coverlet-coverage/coverlet/issues/1155](https://togithub.com/coverlet-coverage/coverlet/issues/1155)5\ \-Incorrect coverage for methods returning IAsyncEnumerable in generic classes[https://github.com/coverlet-coverage/coverlet/issues/1383](https://togithub.com/coverlet-coverage/coverlet/issues/1383)3\ \-Wrong branch coverage for async methods .NET Standard 1.x[https://github.com/coverlet-coverage/coverlet/issues/1376](https://togithub.com/coverlet-coverage/coverlet/issues/1376)6\ \-Empty path exception in visual basic projects[https://github.com/coverlet-coverage/coverlet/issues/775](https://togithub.com/coverlet-coverage/coverlet/issues/775)5\ \-Align published nuget package version to github release version[https://github.com/coverlet-coverage/coverlet/issues/1413](https://togithub.com/coverlet-coverage/coverlet/issues/1413)3\ \-Sync nuget and github release versions[https://github.com/coverlet-coverage/coverlet/issues/1122](https://togithub.com/coverlet-coverage/coverlet/issues/1122)2 Improvements \-Migration of the project to .NET 6.0[https://github.com/coverlet-coverage/coverlet/pull/1473](https://togithub.com/coverlet-coverage/coverlet/pull/1473)3 Breaking changes New parameter ExcludeAssembliesWithoutSources to control automatic assembly exclusion [https://github.com/coverlet-coverage/coverlet/issues/1164](https://togithub.com/coverlet-coverage/coverlet/issues/1164). The parameter InstrumentModulesWithoutLocalSources has been removed. since it can be handled by setting ExcludeAssembliesWithoutSources to None. The default heuristics for determining whether to instrument an assembly has been changed. In previous versions any missing source file was taken as a signal that it was a third-party project that shouldn't be instrumented, with exceptions for some common file name patterns for source generators. Now only assemblies where no source files at all can be found are excluded from instrumentation, and the code for detecting source generator files have been removed. To get back to the behaviour that at least one missing file is sufficient to exclude an assembly, set ExcludeAssembliesWithoutSources to MissingAny, or use assembly exclusion filters for more fine-grained control. [Diff between 3.2.0 and 6.0.0](https://togithub.com/coverlet-coverage/coverlet/compare/v5.7.2...v6.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/Testably/Testably.Abstractions). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzUuOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [coverlet.collector](https://togithub.com/coverlet-coverage/coverlet) | nuget | major | `3.2.0` -> `6.0.0` | --- ### Release Notes <details> <summary>coverlet-coverage/coverlet</summary> ### [`v6.0.0`](https://togithub.com/coverlet-coverage/coverlet/releases/tag/v6.0.0) Fixed \-Could not write lines to file CoverletSourceRootsMapping - in use by another process[https://github.com/coverlet-coverage/coverlet/issues/1155](https://togithub.com/coverlet-coverage/coverlet/issues/1155)5\ \-Incorrect coverage for methods returning IAsyncEnumerable in generic classes[https://github.com/coverlet-coverage/coverlet/issues/1383](https://togithub.com/coverlet-coverage/coverlet/issues/1383)3\ \-Wrong branch coverage for async methods .NET Standard 1.x[https://github.com/coverlet-coverage/coverlet/issues/1376](https://togithub.com/coverlet-coverage/coverlet/issues/1376)6\ \-Empty path exception in visual basic projects[https://github.com/coverlet-coverage/coverlet/issues/775](https://togithub.com/coverlet-coverage/coverlet/issues/775)5\ \-Align published nuget package version to github release version[https://github.com/coverlet-coverage/coverlet/issues/1413](https://togithub.com/coverlet-coverage/coverlet/issues/1413)3\ \-Sync nuget and github release versions[https://github.com/coverlet-coverage/coverlet/issues/1122](https://togithub.com/coverlet-coverage/coverlet/issues/1122)2 Improvements \-Migration of the project to .NET 6.0[https://github.com/coverlet-coverage/coverlet/pull/1473](https://togithub.com/coverlet-coverage/coverlet/pull/1473)3 Breaking changes New parameter ExcludeAssembliesWithoutSources to control automatic assembly exclusion [https://github.com/coverlet-coverage/coverlet/issues/1164](https://togithub.com/coverlet-coverage/coverlet/issues/1164). The parameter InstrumentModulesWithoutLocalSources has been removed. since it can be handled by setting ExcludeAssembliesWithoutSources to None. The default heuristics for determining whether to instrument an assembly has been changed. In previous versions any missing source file was taken as a signal that it was a third-party project that shouldn't be instrumented, with exceptions for some common file name patterns for source generators. Now only assemblies where no source files at all can be found are excluded from instrumentation, and the code for detecting source generator files have been removed. To get back to the behaviour that at least one missing file is sufficient to exclude an assembly, set ExcludeAssembliesWithoutSources to MissingAny, or use assembly exclusion filters for more fine-grained control. [Diff between 3.2.0 and 6.0.0](https://togithub.com/coverlet-coverage/coverlet/compare/v5.7.2...v6.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/ThorstenSauter/NoPlan). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzUuOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [coverlet.collector](https://togithub.com/coverlet-coverage/coverlet) | nuget | major | `3.2.0` -> `6.0.0` | --- ### Release Notes <details> <summary>coverlet-coverage/coverlet</summary> ### [`v6.0.0`](https://togithub.com/coverlet-coverage/coverlet/releases/tag/v6.0.0) Fixed \-Could not write lines to file CoverletSourceRootsMapping - in use by another process[https://github.com/coverlet-coverage/coverlet/issues/1155](https://togithub.com/coverlet-coverage/coverlet/issues/1155)5\ \-Incorrect coverage for methods returning IAsyncEnumerable in generic classes[https://github.com/coverlet-coverage/coverlet/issues/1383](https://togithub.com/coverlet-coverage/coverlet/issues/1383)3\ \-Wrong branch coverage for async methods .NET Standard 1.x[https://github.com/coverlet-coverage/coverlet/issues/1376](https://togithub.com/coverlet-coverage/coverlet/issues/1376)6\ \-Empty path exception in visual basic projects[https://github.com/coverlet-coverage/coverlet/issues/775](https://togithub.com/coverlet-coverage/coverlet/issues/775)5\ \-Align published nuget package version to github release version[https://github.com/coverlet-coverage/coverlet/issues/1413](https://togithub.com/coverlet-coverage/coverlet/issues/1413)3\ \-Sync nuget and github release versions[https://github.com/coverlet-coverage/coverlet/issues/1122](https://togithub.com/coverlet-coverage/coverlet/issues/1122)2 Improvements \-Migration of the project to .NET 6.0[https://github.com/coverlet-coverage/coverlet/pull/1473](https://togithub.com/coverlet-coverage/coverlet/pull/1473)3 Breaking changes New parameter ExcludeAssembliesWithoutSources to control automatic assembly exclusion [https://github.com/coverlet-coverage/coverlet/issues/1164](https://togithub.com/coverlet-coverage/coverlet/issues/1164). The parameter InstrumentModulesWithoutLocalSources has been removed. since it can be handled by setting ExcludeAssembliesWithoutSources to None. The default heuristics for determining whether to instrument an assembly has been changed. In previous versions any missing source file was taken as a signal that it was a third-party project that shouldn't be instrumented, with exceptions for some common file name patterns for source generators. Now only assemblies where no source files at all can be found are excluded from instrumentation, and the code for detecting source generator files have been removed. To get back to the behaviour that at least one missing file is sufficient to exclude an assembly, set ExcludeAssembliesWithoutSources to MissingAny, or use assembly exclusion filters for more fine-grained control. [Diff between 3.2.0 and 6.0.0](https://togithub.com/coverlet-coverage/coverlet/compare/v5.7.2...v6.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/Testably/Testably.Architecture.Rules). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45OC4wIiwidXBkYXRlZEluVmVyIjoiMzUuOTguMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Valentin Breuß <[email protected]>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [coverlet.collector](https://togithub.com/coverlet-coverage/coverlet) | nuget | major | `3.2.0` -> `6.0.0` | | [coverlet.msbuild](https://togithub.com/coverlet-coverage/coverlet) | nuget | major | `3.2.0` -> `6.0.0` | --- ### Release Notes <details> <summary>coverlet-coverage/coverlet</summary> ### [`v6.0.0`](https://togithub.com/coverlet-coverage/coverlet/releases/tag/v6.0.0) Fixed \-Could not write lines to file CoverletSourceRootsMapping - in use by another process[https://github.com/coverlet-coverage/coverlet/issues/1155](https://togithub.com/coverlet-coverage/coverlet/issues/1155)5\ \-Incorrect coverage for methods returning IAsyncEnumerable in generic classes[https://github.com/coverlet-coverage/coverlet/issues/1383](https://togithub.com/coverlet-coverage/coverlet/issues/1383)3\ \-Wrong branch coverage for async methods .NET Standard 1.x[https://github.com/coverlet-coverage/coverlet/issues/1376](https://togithub.com/coverlet-coverage/coverlet/issues/1376)6\ \-Empty path exception in visual basic projects[https://github.com/coverlet-coverage/coverlet/issues/775](https://togithub.com/coverlet-coverage/coverlet/issues/775)5\ \-Align published nuget package version to github release version[https://github.com/coverlet-coverage/coverlet/issues/1413](https://togithub.com/coverlet-coverage/coverlet/issues/1413)3\ \-Sync nuget and github release versions[https://github.com/coverlet-coverage/coverlet/issues/1122](https://togithub.com/coverlet-coverage/coverlet/issues/1122)2 Improvements \-Migration of the project to .NET 6.0[https://github.com/coverlet-coverage/coverlet/pull/1473](https://togithub.com/coverlet-coverage/coverlet/pull/1473)3 Breaking changes New parameter ExcludeAssembliesWithoutSources to control automatic assembly exclusion [https://github.com/coverlet-coverage/coverlet/issues/1164](https://togithub.com/coverlet-coverage/coverlet/issues/1164). The parameter InstrumentModulesWithoutLocalSources has been removed. since it can be handled by setting ExcludeAssembliesWithoutSources to None. The default heuristics for determining whether to instrument an assembly has been changed. In previous versions any missing source file was taken as a signal that it was a third-party project that shouldn't be instrumented, with exceptions for some common file name patterns for source generators. Now only assemblies where no source files at all can be found are excluded from instrumentation, and the code for detecting source generator files have been removed. To get back to the behaviour that at least one missing file is sufficient to exclude an assembly, set ExcludeAssembliesWithoutSources to MissingAny, or use assembly exclusion filters for more fine-grained control. [Diff between 3.2.0 and 6.0.0](https://togithub.com/coverlet-coverage/coverlet/compare/v5.7.2...v6.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/bruxisma/atmosphere). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzUuOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Signed-off-by: Renovate Bot <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [coverlet.msbuild](https://togithub.com/coverlet-coverage/coverlet) | `3.2.0` -> `6.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/coverlet.msbuild/6.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/coverlet.msbuild/6.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/coverlet.msbuild/3.2.0/6.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/coverlet.msbuild/3.2.0/6.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>coverlet-coverage/coverlet (coverlet.msbuild)</summary> ### [`v6.0.0`](https://togithub.com/coverlet-coverage/coverlet/releases/tag/v6.0.0) Fixed \-Could not write lines to file CoverletSourceRootsMapping - in use by another process[https://github.com/coverlet-coverage/coverlet/issues/1155](https://togithub.com/coverlet-coverage/coverlet/issues/1155)5\ \-Incorrect coverage for methods returning IAsyncEnumerable in generic classes[https://github.com/coverlet-coverage/coverlet/issues/1383](https://togithub.com/coverlet-coverage/coverlet/issues/1383)3\ \-Wrong branch coverage for async methods .NET Standard 1.x[https://github.com/coverlet-coverage/coverlet/issues/1376](https://togithub.com/coverlet-coverage/coverlet/issues/1376)6\ \-Empty path exception in visual basic projects[https://github.com/coverlet-coverage/coverlet/issues/775](https://togithub.com/coverlet-coverage/coverlet/issues/775)5\ \-Align published nuget package version to github release version[https://github.com/coverlet-coverage/coverlet/issues/1413](https://togithub.com/coverlet-coverage/coverlet/issues/1413)3\ \-Sync nuget and github release versions[https://github.com/coverlet-coverage/coverlet/issues/1122](https://togithub.com/coverlet-coverage/coverlet/issues/1122)2 Improvements \-Migration of the project to .NET 6.0[https://github.com/coverlet-coverage/coverlet/pull/1473](https://togithub.com/coverlet-coverage/coverlet/pull/1473)3 Breaking changes New parameter ExcludeAssembliesWithoutSources to control automatic assembly exclusion [https://github.com/coverlet-coverage/coverlet/issues/1164](https://togithub.com/coverlet-coverage/coverlet/issues/1164). The parameter InstrumentModulesWithoutLocalSources has been removed. since it can be handled by setting ExcludeAssembliesWithoutSources to None. The default heuristics for determining whether to instrument an assembly has been changed. In previous versions any missing source file was taken as a signal that it was a third-party project that shouldn't be instrumented, with exceptions for some common file name patterns for source generators. Now only assemblies where no source files at all can be found are excluded from instrumentation, and the code for detecting source generator files have been removed. To get back to the behaviour that at least one missing file is sufficient to exclude an assembly, set ExcludeAssembliesWithoutSources to MissingAny, or use assembly exclusion filters for more fine-grained control. [Diff between 3.2.0 and 6.0.0](https://togithub.com/coverlet-coverage/coverlet/compare/v5.7.2...v6.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/apollographql/federation-hotchocolate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Having an issue generating the report. The project is SDK format but references older projects. When I run'
(actual paths omitted)
dotnet test "....csproj" --configuration Release --filter Category!=IntegrationTest --logger:trx --results-directory "...\TestResults" --settings "....runsettings" /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput="....Tests.cobertura.xml"
I get the following error
This works for several other projects in the solution that don't have a reference to older projects.
I also noticed I get these warnings when building:
The text was updated successfully, but these errors were encountered: