Hi,
I am trying to run to Dotnet Test command for .NetCore dll in Azure Devops and It throws exception for some tests saying elevated Mocking Exception.
Comand Used is
- task: DotNetCoreCLI@2
displayName: dotnet test - Unit Tests
inputs:
command: test
projects: '**/*.UnitTest.csproj'
arguments: --no-build --configuration $(BuildConfiguration) --logger trx --collect "Code coverage" /p:CollectCoverage=true /p:Threshold=0 /p:ThresholdType=line /p:CoverletOutputFormat=cobertura /p:CoverletOutput=$(Build.SourcesDirectory)/TestResults/Coverage /p:ExcludeByAttribute="DebuggerNonUserCodeAttribute" /p:ExcludeByFile=\"**/obj/**/*.cs"
testRunTitle: Unit Tests