File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 test :
1111 runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ os : [linux, windows]
1215
1316 steps :
1417 - uses : actions/checkout@v4
2225 - name : Install dependencies
2326 run : npm ci
2427
25- - name : Run Linux tests
28+ - name : Run tests
2629 run : npx vitest run test/testdriver/*.test.mjs
2730 env :
2831 TD_API_KEY : ${{ secrets.TD_API_KEY }}
32+ TD_OS : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -580,14 +580,17 @@ class TestDriverReporter {
580580
581581 logger . debug ( "Stats:" , stats ) ;
582582
583- // Determine overall status based on reason and stats
583+ // Determine overall status based on stats (not reason, which is unreliable in parallel runs)
584584 let status = "passed" ;
585- if ( reason === "failed" || stats . failedTests > 0 ) {
585+ if ( stats . failedTests > 0 ) {
586586 status = "failed" ;
587587 } else if ( reason === "interrupted" ) {
588588 status = "cancelled" ;
589589 } else if ( stats . totalTests === 0 ) {
590590 status = "cancelled" ;
591+ } else if ( stats . passedTests === 0 && stats . skippedTests === 0 ) {
592+ // No tests actually ran (all were filtered/excluded)
593+ status = "cancelled" ;
591594 }
592595
593596 // Complete test run via API
You can’t perform that action at this time.
0 commit comments