'Exclude some file from the code coverage report in azure pipeline

I used the follow commands,but it did not worked.

task: DotNetCoreCLI@2 displayName: 'dotnet test' inputs: command: test projects: '**/MedicoDoctorWebTest.csproj' arguments: '--configuration $(buildConfiguration) --collect "XPlat Code coverage" /p:Include="[MedicoDoctorWeb.]" /p:Exclude="[]MedicoDoctorWeb.Utilities.ApiCalls.Aws.%2c[]MedicoDoctorWeb.Configurations.%2c[]MedicoDoctorWeb.Properties.%2c[]AspNetCore.%2c[]System." /p:ExcludeByFile="ApiNoticeDynamoDB.cs" -- RunConfiguration.DisableAppDomain=true' testRunTitle: MedicoDoctorWebUT



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source