File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,14 +118,15 @@ class Build : NukeBuild
118118 {
119119 Project project = Solution . Specs . Approval_Tests ;
120120
121- DotNetTest ( s => s
121+ DotNetBuild ( s => s
122+ . SetProjectFile ( project )
122123 . SetConfiguration ( Configuration . Release )
123124 . SetProcessEnvironmentVariable ( "DOTNET_CLI_UI_LANGUAGE" , "en-US" )
124- . EnableNoBuild ( )
125- . SetResultsDirectory ( TestResultsDirectory )
126- . CombineWith ( cc => cc
127- . SetProjectFile ( project )
128- . AddLoggers ( $ "trx;LogFileName= { project . Name } .trx" ) ) , completeOnFailure : true ) ;
125+ . EnableNoRestore ( )
126+ . SetProperty (
127+ "TestingPlatformCommandLineArguments" ,
128+ $ "--report-xunit-trx --report-xunit-trx-filename { project . Name } .trx --results-directory { TestResultsDirectory } " )
129+ . AddProcessAdditionalArguments ( "-t:Test" ) ) ;
129130
130131 ReportTestOutcome ( globFilters : $ "*{ project . Name } .trx") ;
131132 } ) ;
Original file line number Diff line number Diff line change 99 <PackageReference Include =" FluentAssertions" Version =" 8.0.0" />
1010 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.13.0" />
1111 <PackageReference Include =" xunit.v3.core" Version =" 4.0.0" />
12- <PackageReference Include =" xunit.runner.visualstudio" Version =" 3.1.5" >
13- <PrivateAssets >all</PrivateAssets >
14- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
15- </PackageReference >
1612 <PackageReference Include =" PublicApiGenerator" Version =" 11.5.4" />
1713 <PackageReference Include =" Verify.DiffPlex" Version =" 3.3.1" />
1814 <PackageReference Include =" Verify.XunitV3" Version =" 32.0.0" />
You can’t perform that action at this time.
0 commit comments