Skip to content

Commit 71144d5

Browse files
committed
wip
1 parent 957cda4 commit 71144d5

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: npm install @currents/node-test-reporter @currents/cmd
3333

3434
- name: Run tests in shard ${{ matrix.shard }}
35-
run: node --test --test-shard=${{ matrix.shard }}/2 --test-reporter @currents/node-test-reporter --test-reporter-destination=./report.xml tests/**.test.mjs
35+
run: node --test --test-shard=${{ matrix.shard }}/2 --test-reporter @currents/node-test-reporter --test-reporter-destination=./report.xml tests/**.test.mjs || true && echo '✅ Script executed successfully'
3636

3737
- name: Convert test results to Currents format
3838
run: npx currents convert --input-format=junit --input-file=./report.xml --framework=node

report.xml

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<testsuites name="root">
3-
<testsuite name="file:///tests/annotations.test.mjs" timestamp="2025-04-30T12:04:03.317Z" hostname="Yohays-MacBook-Pro.local" failures="0" skipped="4" time="0.0058790000000000005">
4-
<testcase name="Math Operations &gt; Addition &gt; should return 4 when adding 2 + 2" time="0.000122"/>
5-
<testcase name="Math Operations &gt; Addition &gt; should return 0 when adding -2 + 2" time="0.000036">
3+
<testsuite name="file:///tests/annotations.test.mjs" timestamp="2025-04-30T12:12:28.792Z" hostname="Yohays-MacBook-Pro.local" failures="0" skipped="4" time="0.0054340000000000005">
4+
<testcase name="Math Operations &gt; Addition &gt; should return 4 when adding 2 + 2" time="0.000173"/>
5+
<testcase name="Math Operations &gt; Addition &gt; should return 0 when adding -2 + 2" time="0.000039">
66
<skipped/>
77
</testcase>
8-
<testcase name="Math Operations &gt; Addition &gt; should handle floating point addition" time="0.00084">
8+
<testcase name="Math Operations &gt; Addition &gt; should handle floating point addition" time="0.000449">
99
<skipped type="todo"/>
1010
</testcase>
11-
<testcase name="Math Operations &gt; Subtraction" time="0.000036" testNumber="2">
11+
<testcase name="Math Operations &gt; Subtraction" time="0.000034" testNumber="2">
1212
<skipped/>
1313
</testcase>
1414
<testcase name="Math Operations &gt; Multiplication" time="0.00003" testNumber="3">
1515
<skipped type="todo"/>
1616
</testcase>
17-
<testcase name="Math Operations &gt; Division &gt; should return 2 when dividing 4 / 2" time="0.000054"/>
18-
<testcase name="Math Operations &gt; Division &gt; should throw an error when dividing by 0" time="0.000169"/>
17+
<testcase name="Math Operations &gt; Division &gt; should return 2 when dividing 4 / 2" time="0.000053"/>
18+
<testcase name="Math Operations &gt; Division &gt; should throw an error when dividing by 0" time="0.000175"/>
1919
</testsuite>
20-
<testsuite name="tests/edge-cases.test.mjs" timestamp="2025-04-30T12:04:03.323Z" hostname="Yohays-MacBook-Pro.local" failures="1" skipped="0" time="0.035162">
21-
<testcase name="/Users/ynahmany/Documents/github/currents/currents-nodejs-github-actions-example/tests/edge-cases.test.mjs" time="0.035162">
20+
<testsuite name="tests/edge-cases.test.mjs" timestamp="2025-04-30T12:12:28.797Z" hostname="Yohays-MacBook-Pro.local" failures="1" skipped="0" time="0.032008">
21+
<testcase name="/Users/ynahmany/Documents/github/currents/currents-nodejs-github-actions-example/tests/edge-cases.test.mjs" time="0.032008">
2222
<failure type="testCodeFailure" message="test failed
2323
{
2424
&quot;failureType&quot;: &quot;testCodeFailure&quot;,
@@ -37,15 +37,15 @@
3737
]]></failure>
3838
</testcase>
3939
</testsuite>
40-
<testsuite name="file:///tests/nesting.test.mjs" timestamp="2025-04-30T12:04:03.324Z" hostname="Yohays-MacBook-Pro.local" failures="3" skipped="0" time="0.0062900000000000005">
41-
<testcase name="Math Operations &gt; Addition &gt; should return 5 when adding 2 and 3" time="0.000174"/>
42-
<testcase name="Math Operations &gt; Addition &gt; should return 0 when adding -1 and 1" time="0.000424"/>
43-
<testcase name="Math Operations &gt; Subtraction &gt; should return 1 when subtracting 3 from 4" time="0.000125"/>
44-
<testcase name="Math Operations &gt; Subtraction &gt; should return -2 when subtracting 3 from 1" time="0.000035"/>
40+
<testsuite name="file:///tests/nesting.test.mjs" timestamp="2025-04-30T12:12:28.799Z" hostname="Yohays-MacBook-Pro.local" failures="3" skipped="0" time="0.006468">
41+
<testcase name="Math Operations &gt; Addition &gt; should return 5 when adding 2 and 3" time="0.00019"/>
42+
<testcase name="Math Operations &gt; Addition &gt; should return 0 when adding -1 and 1" time="0.000378"/>
43+
<testcase name="Math Operations &gt; Subtraction &gt; should return 1 when subtracting 3 from 4" time="0.000126"/>
44+
<testcase name="Math Operations &gt; Subtraction &gt; should return -2 when subtracting 3 from 1" time="0.000034"/>
4545
<testcase name="Math Operations &gt; Multiplication &gt; should return 6 when multiplying 2 and 3" time="0.000052"/>
46-
<testcase name="Math Operations &gt; Multiplication &gt; should return 0 when multiplying any number by 0" time="0.000037"/>
46+
<testcase name="Math Operations &gt; Multiplication &gt; should return 0 when multiplying any number by 0" time="0.000035"/>
4747
<testcase name="Math Operations &gt; Division &gt; should return 2 when dividing 6 by 3" time="0.000048"/>
48-
<testcase name="Math Operations &gt; Division &gt; should throw an error when dividing by 0" time="0.000398">
48+
<testcase name="Math Operations &gt; Division &gt; should throw an error when dividing by 0" time="0.000405">
4949
<failure type="testCodeFailure" message="Missing expected exception.
5050
{
5151
&quot;failureType&quot;: &quot;testCodeFailure&quot;,
@@ -70,13 +70,13 @@
7070
]]></failure>
7171
</testcase>
7272
</testsuite>
73-
<testsuite name="file:///tests/simple.test.mjs" timestamp="2025-04-30T12:04:03.325Z" hostname="Yohays-MacBook-Pro.local" failures="2" skipped="0" time="0.002782">
74-
<testcase name="Math operations - addition" time="0.000508"/>
75-
<testcase name="Math operations - subtraction" time="0.000044"/>
76-
<testcase name="Math operations - multiplication" time="0.000039"/>
73+
<testsuite name="file:///tests/simple.test.mjs" timestamp="2025-04-30T12:12:28.800Z" hostname="Yohays-MacBook-Pro.local" failures="2" skipped="0" time="0.00261">
74+
<testcase name="Math operations - addition" time="0.000539"/>
75+
<testcase name="Math operations - subtraction" time="0.000046"/>
76+
<testcase name="Math operations - multiplication" time="0.00004"/>
7777
<testcase name="Math operations - division" time="0.000038"/>
78-
<testcase name="Math operations - division by zero" time="0.000115"/>
79-
<testcase name="Math operations - incorrect addition" time="0.001363">
78+
<testcase name="Math operations - division by zero" time="0.000114"/>
79+
<testcase name="Math operations - incorrect addition" time="0.001152">
8080
<failure type="testCodeFailure" message="Expected values to be strictly equal:
8181
8282
4 !== 5
@@ -105,7 +105,7 @@
105105
}
106106
]]></failure>
107107
</testcase>
108-
<testcase name="Math operations - incorrect addition &gt; should return 5" time="0.000675">
108+
<testcase name="Math operations - incorrect addition &gt; should return 5" time="0.000681">
109109
<failure type="testCodeFailure" message="Expected values to be strictly equal:
110110
111111
4 !== 5
@@ -135,8 +135,8 @@
135135
]]></failure>
136136
</testcase>
137137
</testsuite>
138-
<testsuite name="file:///tests/timeout.test.mjs" timestamp="2025-04-30T12:04:03.325Z" hostname="Yohays-MacBook-Pro.local" failures="1" skipped="0" time="0.002177">
139-
<testcase name="this will timeout" time="0.002177">
138+
<testsuite name="file:///tests/timeout.test.mjs" timestamp="2025-04-30T12:12:28.800Z" hostname="Yohays-MacBook-Pro.local" failures="1" skipped="0" time="0.002001">
139+
<testcase name="this will timeout" time="0.002001">
140140
<failure type="cancelledByParent" message="Promise resolution is still pending but the event loop has already resolved
141141
{
142142
&quot;failureType&quot;: &quot;cancelledByParent&quot;,

0 commit comments

Comments
 (0)