Skip to content

Commit d3531bc

Browse files
authored
Merge pull request #12 from knaopel/v1.19.0
Add test report file
2 parents ee3d5f9 + e736afc commit d3531bc

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
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">
5+
</testcase>
6+
<testcase classname="DIListItemProvider" name="Should call the correct URL when calling getListItems" time="0.003">
7+
</testcase>
8+
</testsuite>
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">
11+
</testcase>
12+
</testsuite>
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">
15+
</testcase>
16+
<testcase classname="SPContextListItemProvider" name="Should call the correct URL when calling getById" time="0.002">
17+
</testcase>
18+
</testsuite>
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">
23+
</testcase>
24+
</testsuite>
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">
27+
</testcase>
28+
<testcase classname="ItemsWithAdminInfo" name="should display items when loaded" time="0.125">
29+
</testcase>
30+
<testcase classname="ItemsWithAdminInfo" name="should handle error when getting items fails" time="0.018">
31+
</testcase>
32+
</testsuite>
33+
</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)