@@ -69,25 +69,29 @@ private static void TestProjectForTarget(BuildContext context, FilePath project,
6969 var projectName = $ "{ project . GetFilenameWithoutExtension ( ) } .net{ framework } ";
7070 var settings = new DotNetTestSettings
7171 {
72+ PathType = DotNetTestPathType . Project ,
7273 Framework = $ "net{ framework } ",
7374 NoBuild = true ,
7475 NoRestore = true ,
7576 Configuration = context . MsBuildConfiguration ,
76- TestAdapterPath = new ( "." )
7777 } ;
7878
7979 var resultsPath = context . MakeAbsolute ( testResultsPath . CombineWithFilePath ( $ "{ projectName } .results.xml") ) ;
80- settings . Loggers = [ $ "junit;LogFilePath={ resultsPath } "] ;
80+ settings . WithArgumentCustomization ( args => args
81+ . Append ( "--report-spekt-junit" )
82+ . Append ( "--report-spekt-junit-filename" ) . AppendQuoted ( resultsPath . FullPath )
83+ ) ;
8184
82- var coverletSettings = new CoverletSettings
83- {
84- CollectCoverage = true ,
85- CoverletOutputFormat = CoverletOutputFormat . cobertura ,
86- CoverletOutputDirectory = testResultsPath ,
87- CoverletOutputName = $ "{ projectName } .coverage.xml",
88- Exclude = [ "[GitVersion*.Tests]*" , "[GitTools.Testing]*" ]
89- } ;
85+ context . DotNetTest ( project . FullPath , settings ) ;
86+ // var coverletSettings = new CoverletSettings
87+ // {
88+ // CollectCoverage = true,
89+ // CoverletOutputFormat = CoverletOutputFormat.cobertura,
90+ // CoverletOutputDirectory = testResultsPath,
91+ // CoverletOutputName = $"{projectName}.coverage.xml",
92+ // Exclude = ["[GitVersion*.Tests]*", "[GitTools.Testing]*"]
93+ // };
9094
91- context . DotNetTest ( project . FullPath , settings , coverletSettings ) ;
95+ // context.DotNetTest(project.FullPath, settings, coverletSettings);
9296 }
9397}
0 commit comments