Skip to content

Commit

Permalink
Generate test result output
Browse files Browse the repository at this point in the history
georgms committed Dec 11, 2023
1 parent 4841cc8 commit 9bac063
Showing 4 changed files with 60 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -19,4 +19,4 @@ jobs:
if: always()
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: '*/build/test-results/**/*.xml'
files: '*/test-results/**/*.xml'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/.idea
/.idea
/test-results/
45 changes: 44 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -18,9 +18,20 @@
},
"homepage": "https://github.com/Nosto/search-coding-interview-javascript#readme",
"devDependencies": {
"jest": "^29.7.0"
"jest": "^29.7.0",
"jest-junit": "^16.0.0"
},
"jest": {
"transform": {}
"transform": {},
"reporters": [
"default",
[
"jest-junit",
{
"outputDirectory": "test-results/jest",
"outputName": "results.xml"
}
]
]
}
}

0 comments on commit 9bac063

Please sign in to comment.