i trying create msbuild build output dotcover.html report upload sonarqube. - dotcover errors out though unit test pass. don't know go here.
msbuild file
<itemgroup> <testassemblies include="**\bin\release\*.tests.dll" /> </itemgroup> <propertygroup> <dlls>@(testassemblies, ' ')</dlls> </propertygroup> //some other targets <target name="dotcover"> <exec command='"%localappdata%\jetbrains\installations\dotcover04\dotcover.exe" analyse /reporttype=html /output="dotcover.html" /targetworkingdir=. /targetexecutable:"packages\xunit.runner.console.2.1.0\tools\xunit.console.exe" /targetarguments="$(dlls) -noshadow" /logfile' /> </target>
error in dotcover logfile
15:17:29.682 |i| iteratorsprocessor | can't find matching method iterator class xunit.sdk.xunittestassemblyrunner+d__14 extracted containing method name: runtestcollectionsasync candidates number: 0 parent type methods: .ctor; dispose; gettestframeworkdisplayname; gettestframeworkenvironment; setupsynccontext; initialize; aftertestassemblystartingasync; beforetestassemblyfinishedasync; runtestcollectionsasync; runtestcollectionasync; setsynchronizationcontext; <>n__0 15:17:29.703 |i| iteratorsprocessor | can't find matching method iterator class xunit.assert+d__56`1 extracted containing method name: throwsasync candidates number: 0 parent type methods: .ctor; equals; referenceequals; false; false; false; false; true; true; true; true; all; collection; contains; contains; contains; doesnotcontain; doesnotcontain; doesnotcontain; empty; equal; equal; notempty; notequal; notequal; single; single; single; single; getcomparer; getequalitycomparer; equal; equal; equal; equal; strictequal; notequal; notequal; notequal; notequal; notstrictequal; throws; throws; throws; throwsasync; throwsany; throwsany; throwsanyasync; throws; throws; throwsasync; throws; throwsany; throws; throws; throws; throwsasync; guardargumentnotnull; recordexception; recordexception; recordexception; recordexceptionasync; notsame; same; notnull; null; propertychanged; inrange; inrange; notinrange; notinrange; propersubset; propersuperset; subset; superset; contains; contains; doesnotcontain; doesnotcontain; startswith; startswith; endswith; endswith; matches; matches; doesnotmatch; doesnotmatch; equal; equal; islineending; iswhitespace; skiplineending; skipwhitespace; isassignablefrom; isassignablefrom; isnottype; isnottype; istype; istype
any appreciated. thank you.
dotcover unable process information against assemblies without having pdb
s available use. can set pdb
s utilized either adding <debugtype>pdbonly</debugtype>
under configuration being used builds, or adding /debug:pdbonly
switch compiler line project. can set these through project's properties on build panel, through advanced options section, or manually editing csproj. if having pdb
s isn't optimal may able set post condition run after dotcover clean them out.
Comments
Post a Comment