Comments (5)
Sorry that's not possible with ReportGenerator. You can only ignore complete assemblies.
You could create a custom attribute (see this sample: https://github.com/danielpalme/ReportGenerator/blob/master/ReportGenerator.Testprojects/CSharp/Project/CoverageExcludeAttribute.cs) and use the "-excludebyattribute:*.CoverageExclude*"
switch of OpenCover
from reportgenerator.
Sorry that's not possible with ReportGenerator. You can only ignore complete assemblies.
You could create a custom attribute (see this sample: https://github.com/danielpalme/ReportGenerator/blob/master/ReportGenerator.Testprojects/CSharp/Project/CoverageExcludeAttribute.cs) and use the"-excludebyattribute:*.CoverageExclude*"
switch of OpenCover
Hello Daniel,
Since this reply is old, I would like to check if this is still not possible or there is any solution/workaround to include/exclude specific namespace
from reportgenerator.
I'm sorry, there is not filter option for namespaces.
from reportgenerator.
For ASP.NET Core it would be very useful as views are compiled to same assembly with web project code. Example on image below. Check the first lines starting with AspNetCoreGeneratedDocument.
from reportgenerator.
@gpeipman
The following command line argument should help in your case to exclude the views:
-classfilters:-AspNetCoreGeneratedDocument.Views__*
from reportgenerator.
Related Issues (20)
- minimumCoverageThresholds:lineCoverage not working HOT 12
- Issue with -reporttypes field HOT 1
- Wiki Edit HOT 1
- Unable to convert opencoverxml file into corbertura.xml file using ReportGenerator in Azure Devops Pipeline HOT 3
- Release notice confuses me. HOT 1
- Why is the reportgenerator command installed using the dotent not working? HOT 2
- Report generated is always at version 5.1.14.0 on AzureDevops HOT 1
- Allow to specify the root path HOT 1
- Question: Is the format created by the CTC++ tool supported as input for report generator? HOT 2
- MS Coverage output isn't cleaning compiler generated methods/types HOT 13
- Ability to exclude classes from Risk Hotspots HOT 6
- Error while converting jacoco report to cobertura HOT 12
- Suggestion for new report type: MarkdownTableShortSummary HOT 2
- Sonarqube format clashes with DeterministicSourcePaths=true HOT 5
- Azure DevOps task option publishCodeCoverageResults doesn't work with relative targetdir path HOT 2
- Azure pipeline failure due to dependency on NodeJS version 6 HOT 3
- Docs/readmes: add info about `minimumCoverageThresholds` HOT 2
- ReportGenerator 5.3.1 fails on self hosted azure devops agent running on Amazon Linux 2 arm64 instance (t4g) HOT 2
- Question about lcov conversion HOT 4
- Strange source file references in a HTML report from dotnet-coverage on Linux HOT 1
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 reportgenerator.