File tree Expand file tree Collapse file tree 6 files changed +15
-21
lines changed Expand file tree Collapse file tree 6 files changed +15
-21
lines changed Original file line number Diff line number Diff line change 3030 steps :
3131 - name : Run Pipeline
3232 shell : bash
33- run : dotnet run -c Release --verbosity quiet -- categories ${{ inputs.categories }}
33+ run : dotnet run -c Release --categories ${{ inputs.categories }}
3434 working-directory : " TUnit.Pipeline"
3535 env :
3636 ADMIN_TOKEN : ${{ inputs.admin-token }}
Original file line number Diff line number Diff line change 6464 run : npx playwright install
6565
6666 - name : Build
67- run : dotnet build -c Release --verbosity quiet
67+ run : dotnet build -c Release
6868
6969 - name : Run Pipeline
7070 uses : ./.github/actions/execute-pipeline
Original file line number Diff line number Diff line change @@ -5,9 +5,18 @@ public class GlobalHooks
55 [ Before ( TestSession ) ]
66 public static async Task BuildTestProject ( )
77 {
8- await CliWrap . Cli . Wrap ( "dotnet" )
8+ var result = await CliWrap . Cli . Wrap ( "dotnet" )
99 . WithArguments ( [ "build" , "-c" , "Release" ] )
1010 . WithWorkingDirectory ( FileSystemHelpers . FindFile ( x => x . Name == "TUnit.TestProject.csproj" ) ! . DirectoryName ! )
11- . ExecuteAsync ( ) ;
11+ . WithValidation ( CliWrap . CommandResultValidation . None )
12+ . ExecuteBufferedAsync ( ) ;
13+
14+ // Only show output if the command failed
15+ if ( result . ExitCode != 0 )
16+ {
17+ Console . WriteLine ( result . StandardOutput ) ;
18+ Console . Error . WriteLine ( result . StandardError ) ;
19+ throw new InvalidOperationException ( $ "Build failed with exit code { result . ExitCode } ") ;
20+ }
1221 }
1322}
Original file line number Diff line number Diff line change @@ -44,33 +44,18 @@ protected virtual IEnumerable<string> TestableFrameworks
4444
4545 private DotNetRunOptions SetDefaults ( DotNetRunOptions testOptions )
4646 {
47- // Add quiet verbosity to reduce output for successful test runs
48- var arguments = testOptions . Arguments ? . ToList ( ) ?? [ ] ;
49-
50- // Add TUnit verbosity control (only if not already specified)
51- if ( ! arguments . Any ( arg => arg . StartsWith ( "--verbosity" ) ) )
52- {
53- arguments . AddRange ( [ "--verbosity" , "minimal" ] ) ;
54- }
47+ // Removed --fail-fast to allow all tests to run even if some fail
5548
5649 if ( testOptions . EnvironmentVariables ? . Any ( x => x . Key == "NET_VERSION" ) != true )
5750 {
5851 testOptions = testOptions with
5952 {
60- Arguments = [ .. arguments ] ,
6153 EnvironmentVariables = new Dictionary < string , string ? >
6254 {
6355 [ "NET_VERSION" ] = testOptions . Framework ,
6456 }
6557 } ;
6658 }
67- else
68- {
69- testOptions = testOptions with
70- {
71- Arguments = [ .. arguments ]
72- } ;
73- }
7459
7560 return testOptions ;
7661 }
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ await context.DotNet()
3939 ] ,
4040 IncludeSource = project == Sourcy . DotNet . Projects . TUnit_Templates ? false : true ,
4141 Configuration = Configuration . Release ,
42- Verbosity = "quiet" , // Reduce output for successful packs
4342 } , cancellationToken ) ;
4443
4544 packedProjects . Add ( new PackedProject ( project . NameWithoutExtension , version . SemVer ! ) ) ;
Original file line number Diff line number Diff line change 11using System . CommandLine ;
22using Microsoft . Extensions . Configuration ;
33using Microsoft . Extensions . DependencyInjection ;
4+ using Microsoft . Extensions . Logging ;
45using ModularPipelines . Extensions ;
56using ModularPipelines . Host ;
67using ModularPipelines . Options ;
You can’t perform that action at this time.
0 commit comments