diff --git a/.github/workflows/sharded-vitest.yml b/.github/workflows/sharded-vitest.yml index 9e24e72..bb61e34 100644 --- a/.github/workflows/sharded-vitest.yml +++ b/.github/workflows/sharded-vitest.yml @@ -31,7 +31,10 @@ jobs: run: npx vitest --run --shard=${{ matrix.shard }}/${{ matrix.total-shards }} vitest-sharded-example/tests/** --reporter=junit --outputFile=./vitest-sharded-example/results-${{ matrix.shard }}.xml - name: Combine Vitest Sharded results - run: node ./scripts/combine-results.js --reports-dir vitest-sharded-example --output-file vitest-sharded-example/combined-results.xml + run: node ./scripts/combine-results.js --reports-dir vitest-sharded-example --output-file vitest-sharded-example/currents.results.xml + + - name: Generate Instance files + run: node scripts/junitXmlToInstanceJson.js --input vitest-sharded-example/currents.results.xml --output vitest-sharded-example/instances - name: Report Vitest Sharded results env: diff --git a/vitest-sharded-example/config.json b/vitest-sharded-example/config.json index f1e78c2..ce2fd01 100644 --- a/vitest-sharded-example/config.json +++ b/vitest-sharded-example/config.json @@ -1,12 +1,6 @@ { "framework": "junit", - "frameworkVersion": "2.1.5", - "cliArgs": { - "options": { "jUnitFile": "vitest-sharded-example/combined-results.xml" }, - "args": [] - }, - "frameworkConfig": { - "originFramework": "vitest", - "originFrameworkVersion": "2.1.5" - } + "frameworkVersion": null, + "cliArgs": {}, + "frameworkConfig": { "originFramework": "vitest" } } diff --git a/vitest-sharded-example/currents.results.xml b/vitest-sharded-example/currents.results.xml new file mode 100644 index 0000000..fb4f725 --- /dev/null +++ b/vitest-sharded-example/currents.results.xml @@ -0,0 +1,34 @@ + + + + + + + + + +AssertionError: expected 'Hello World' to be 'Hello World!' // Object.is equality + +Expected: "Hello World!" +Received: "Hello World" + + ❯ vitest-sharded-example/tests/stringUtils.spec.js:22:44 + + + + +TypeError: str.split is not a function + ❯ Module.capitalizeWords vitest-sharded-example/stringUtils.js:4:6 + ❯ vitest-sharded-example/tests/stringUtils.spec.js:26:12 + + + + + + + + + + + + \ No newline at end of file