Skip to content

Commit e736afc

Browse files
author
Kurt Opel
committed
Update junit report path
1 parent 4132b47 commit e736afc

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

.github/workflows/test-and-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
if: success() || failure()
5656
with:
5757
name: Jest Tests
58-
path: reports/jest-*.xml
58+
path: jest-*.xml
5959
reporter: jest-junit
6060

6161

jest-junit.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<testsuites name="jest tests" tests="10" failures="0" errors="0" time="30.007">
3-
<testsuite name="tests\dal\DIListItemProvider.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-07-16T19:59:04" time="17.538" tests="2">
4-
<testcase classname="DIListItemProvider" name="Should call the correct URL when calling getById" time="0.069">
2+
<testsuites name="jest tests" tests="10" failures="0" errors="0" time="27.424">
3+
<testsuite name="tests\dal\DIListItemProvider.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-07-16T20:11:27" time="14.99" tests="2">
4+
<testcase classname="DIListItemProvider" name="Should call the correct URL when calling getById" time="0.123">
55
</testcase>
6-
<testcase classname="DIListItemProvider" name="Should call the correct URL when calling getListItems" time="0.002">
6+
<testcase classname="DIListItemProvider" name="Should call the correct URL when calling getListItems" time="0.003">
77
</testcase>
88
</testsuite>
9-
<testsuite name="tests\dal\PnPListItemProvider.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-07-16T19:59:04" time="18.097" tests="2">
10-
<testcase classname="PnPListItemProvider" name="Should call the correct methods weh calling getListItems" time="0.037">
11-
</testcase>
12-
<testcase classname="PnPListItemProvider" name="Should call the correct methods when cfalling getById" time="0.002">
9+
<testsuite name="tests\manager\ItemsWithAuthorDetailsManager.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-07-16T20:11:27" time="15.133" tests="1">
10+
<testcase classname="ItemsWithAuthorDetailsManager" name="should get users" time="0.068">
1311
</testcase>
1412
</testsuite>
15-
<testsuite name="tests\dal\SPContextListItemProvider.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-07-16T19:59:04" time="18.101" tests="2">
16-
<testcase classname="SPContextListItemProvider" name="Should call the correct URL when calling getListItems" time="0.033">
13+
<testsuite name="tests\dal\SPContextListItemProvider.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-07-16T20:11:27" time="15.24" tests="2">
14+
<testcase classname="SPContextListItemProvider" name="Should call the correct URL when calling getListItems" time="0.054">
1715
</testcase>
18-
<testcase classname="SPContextListItemProvider" name="Should call the correct URL when calling getById" time="0.001">
16+
<testcase classname="SPContextListItemProvider" name="Should call the correct URL when calling getById" time="0.002">
1917
</testcase>
2018
</testsuite>
21-
<testsuite name="tests\manager\ItemsWithAuthorDetailsManager.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-07-16T19:59:04" time="18.122" tests="1">
22-
<testcase classname="ItemsWithAuthorDetailsManager" name="should get users" time="0.031">
19+
<testsuite name="tests\dal\PnPListItemProvider.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-07-16T20:11:27" time="15.364" tests="2">
20+
<testcase classname="PnPListItemProvider" name="Should call the correct methods weh calling getListItems" time="0.065">
21+
</testcase>
22+
<testcase classname="PnPListItemProvider" name="Should call the correct methods when cfalling getById" time="0.004">
2323
</testcase>
2424
</testsuite>
25-
<testsuite name="tests\components\ItemsWithAdminInfo.test.tsx" errors="0" failures="0" skipped="0" timestamp="2024-07-16T19:59:04" time="24.054" tests="3">
26-
<testcase classname="ItemsWithAdminInfo" name="should display spinner while loading" time="0.079">
25+
<testsuite name="tests\components\ItemsWithAdminInfo.test.tsx" errors="0" failures="0" skipped="0" timestamp="2024-07-16T20:11:27" time="21.479" tests="3">
26+
<testcase classname="ItemsWithAdminInfo" name="should display spinner while loading" time="0.061">
2727
</testcase>
28-
<testcase classname="ItemsWithAdminInfo" name="should display items when loaded" time="0.123">
28+
<testcase classname="ItemsWithAdminInfo" name="should display items when loaded" time="0.125">
2929
</testcase>
30-
<testcase classname="ItemsWithAdminInfo" name="should handle error when getting items fails" time="0.013">
30+
<testcase classname="ItemsWithAdminInfo" name="should handle error when getting items fails" time="0.018">
3131
</testcase>
3232
</testsuite>
3333
</testsuites>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$"
5959
},
6060
"jest-junit": {
61-
"ouputDirectory": "reports",
61+
"ouputDirectory": "./reports",
6262
"outputName": "jest-junit.xml",
6363
"ancestorSeperator": " > ",
6464
"uniqueOutputName": false,

0 commit comments

Comments
 (0)