Skip to content

Commit

Permalink
feat: add coverage and test report
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-dixit committed Aug 19, 2024
1 parent ebbffb6 commit 7e845dc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/run_js_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,18 @@ jobs:
- name: pnpm build
run: cd js && pnpm build
- name: run test
run: cd js && pnpm test
run: cd js && pnpm test:coverage

- name: Upload `coverage` folder
uses: actions/upload-artifact@v3
with:
name: coverage
path: js/coverage
retention-days: 1

- name: Upload jest html-reporters folder
uses: actions/upload-artifact@v3
with:
name: html-report
path: js/html-report
retention-days: 1
3 changes: 2 additions & 1 deletion js/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ lib/
*.log
ks/test-results/*
coverage/
jest_html_reporters.html
jest_html_reporters.html
html-report/
11 changes: 10 additions & 1 deletion js/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ module.exports = {
],
reporters: [
"default",
"jest-html-reporters"
["jest-html-reporters", {
"pageTitle": "Composio SDK Coverage Report",
"publicPath": "./html-report",
"filename": "report.html",
"includeConsoleLog": true,
"includeTestCoverage": true,
"includeTime": true,
"showSummary": true,
"showTable": true,
}]
],
"coveragePathIgnorePatterns": [
"src/sdk/client/*",
Expand Down

0 comments on commit 7e845dc

Please sign in to comment.