Skip to content

Commit

Permalink
add html report
Browse files Browse the repository at this point in the history
  • Loading branch information
Ala Hawash committed Mar 12, 2024
1 parent 3f3cff9 commit 1205258
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 11 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/axon-tools-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Axon Tools Tests

on:
push:
branches: [ "main" ]
branches: [ "main", "reporting" ]
pull_request:
branches: [ "main" ]

Expand All @@ -28,3 +28,7 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run test --workspace=@medable/mdctl-axon-tools
- uses: actions/upload-artifact@v4
with:
name: mdctl-axon-tools-report
path: ./packages/mdctl-axon-tools/reports
175 changes: 171 additions & 4 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/mdctl-axon-tools/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ output*/

manifest.json
.editorconfig
reports/
9 changes: 9 additions & 0 deletions packages/mdctl-axon-tools/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,13 @@ module.exports = {

// Automatically restore mock state and implementation before every test
restoreMocks: true,

// Custom reporters
reporters: ['default',
['jest-html-reporters', {
publicPath: './reports',
filename: 'report.html',
stripSkippedTest: true,
}]]

}
10 changes: 4 additions & 6 deletions packages/mdctl-axon-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
"author": "Medable, Inc. <[email protected]>",
"license": "MIT",
"scripts": {
"test": "jest",
"test": "npm run lint && npm run cover",
"test:prod": "npm run test",
"test:only": "mocha --recursive",
"test:only": "jest",
"test:watch": "npm run test:only -- --watch",
"test:examples": "node examples/",
"cover": "istanbul cover ../../node_modules/mocha/bin/_mocha -- --recursive --timeout 10000",
"cover": "jest --coverage",
"lint": "eslint *.js"
},
"dependencies": {
Expand All @@ -46,9 +45,8 @@
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"istanbul": "^1.0.0-alpha",
"jest": "^27.4.5",
"mocha": "^5.0.0",
"jest-html-reporters": "^3.1.7",
"nock": "^10.0.6"
},
"gitHead": "4d50c0a1a7e84d29ac2490436643434205ce3f6d"
Expand Down

0 comments on commit 1205258

Please sign in to comment.