Comments (3)
Please see (answer) #1498
from coverlet.
That does not seem to properly exclude the files. I was not including those projects in the first place, they live somewhere on the accesible filesystem tree near the root, far from the actual source and working directory. It just so happens that Nuget packages that are installed have those exact paths in their metadata and so coverlet goes and tries to find them, making the heuristics for exclusion fail. Include directory does not seem to work as a negative (exclude everything outside of these directories) when it is specified.
from coverlet.
Microsoft introduced simplified output paths with .NET 8.0. coverlet uses this feature already.
This feature might be helpful for your scenario and I think using $(Build.SourcesDirectory)
is not an appropriate solution.
Typically the project binaries are separated and coverlet will uses the DLLs within the output folder. Did you customized the build output folder by yourself?
from coverlet.
Related Issues (20)
- [BUG] Upgrading v6.0.1 to v6.0.2 increases instrumentation time HOT 7
- Expected behavior when using CreateHardLinksForCopyLocalIfPossible HOT 1
- [BUG] Throw exception via method causes missing coverage HOT 2
- Question: Active logging or suggestions how to investigate a strange functionality HOT 1
- Records without empty primary constructor are not included in code coverage
- Coverage can be merged with `dotnet-coverage` tool
- [BUG] coverage.cobetura.file.xml filenames inconsistent between .NET 7 and .NET 8 HOT 12
- Coverlet file not being created HOT 1
- 0% code coverage and error in collector HOT 1
- [BUG] coverlet generates coverage report for 'Microsoft.ApplicationInsights' package after upgrading to MSTest.TestAdapter 3.2.0 HOT 1
- New Version release
- No or incorrect coverage on expression body members
- Usage of UseSourceLink results in 500 errors in Azure DevOps. HOT 1
- coverlet nuget package metadata for assemblies is missing/invalid HOT 1
- Coverlet doesnt calculate code coverage for tests until another test is added
- Holding a thread longer open then a test runs through causes coverlet to problably crash internaly and dont calc code coverage HOT 1
- [BUG] Inconsistent filenames with UseSourceLink after .NET 8
- [BUG] System.IndexOutOfRangeException using coverlet collector HOT 5
- Unable to exclude files using .runsettings in dotnet test. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coverlet.