Skip to content

Unable to exclude dependency projects #1133

@HT2207

Description

@HT2207

I have to test Numbers.cs. It has dependency of TestDependancyProj1. I attached solution and directory structure picture.
CodeCoverageSolutionLevel and CodeCoverageSolutionLevel2 are unit test projects

now I run command being at solution directory to exclude TestDependancyProj1 from coverage report
dotnet test ./CodeCoverageSolutionLevel2/CodeCoverageSolutionLevel2.csproj -l trx -r TestResults /p:CollectCoverage=true /p:CoverletOutput=../TestResults/coverage2 /p:Exclude="[TestDependancyProj1*]*"\ /p:CoverletOutputFormat=cobertura

but it fails
IssuePic

image

could you please help here to exclude project dependencies from coverage report

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions