Skip to content

Commit 7068b4f

Browse files
committed
ready to run n ci
1 parent 170e879 commit 7068b4f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
os: [linux, windows]
1215

1316
steps:
1417
- uses: actions/checkout@v4
@@ -22,7 +25,8 @@ jobs:
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 }}

interfaces/vitest-plugin.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)