Skip to content

Commit

Permalink
improve reports
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Oct 18, 2024
1 parent 6e25ac0 commit 7a85252
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- uses: dorny/test-reporter@v1
if: ${{ (success() || failure()) && github.repository == 'mistic100/Photo-Sphere-Viewer' }}
with:
name: tests-results
path: reports/*.json
name: build
path: 'packages/*/reports/mocha.json'
reporter: mocha-json

e2e:
Expand All @@ -51,8 +51,8 @@ jobs:
- uses: dorny/test-reporter@v1
if: ${{ (success() || failure()) && github.repository == 'mistic100/Photo-Sphere-Viewer' }}
with:
name: e2e-results
path: reports/*.json
name: e2e
path: cypress/reports/e2e.json
reporter: mocha-json

# build-doc:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ docs/.vitepress/.temp
!docs/.typedoc
dist
/public
/reports
reports
cypress/screenshots
4 changes: 2 additions & 2 deletions build/mocha-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ module.exports = class MultiReporter extends BaseReporter {
if (options.reporterOptions?.cypress) {
new CypressJsonReporter(runner, {
reporterOption: {
output: path.join(__dirname, '../reports/e2e.json'),
output: 'cypress/reports/e2e.json',
},
});
} else {
new JsonReporter(runner, {
reporterOption: {
output: path.join(__dirname, '../reports', `${options.reporterOption.title}.json`),
output: `reports/mocha.json`,
},
});
}
Expand Down

0 comments on commit 7a85252

Please sign in to comment.