Skip to content

Commit

Permalink
Trying ctrf reporter (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Jul 17, 2024
1 parent 6fb2131 commit 0776742
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 147 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
uses: coactions/setup-xvfb@v1
with:
run: npm run test:e2e
- name: Merge reports
run: npx ctrf merge e2e/reports --output ctrf-report.json
- name: Upload reports
uses: actions/upload-artifact@v4
# if: failure()
with:
name: logs
path: e2e/reports
name: reports
path: e2e/reports/ctrf-report.json
retention-days: 1
7 changes: 1 addition & 6 deletions e2e/wdio.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,7 @@ export const config: Options.Testrunner = {
// see also: https://webdriver.io/docs/dot-reporter
reporters: [
'spec',
[
'junit',
{
outputDir: path.join(__dirname, 'reports'),
},
],
['ctrf-json', { outputDir: path.join(__dirname, 'reports') }],
],

// Setting this allows `vscode` auto attach a debugger if "Auto Attach: With Flag" is set
Expand Down
151 changes: 13 additions & 138 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^2.30.0",
"@wdio/cli": "^8.39.1",
"@wdio/junit-reporter": "^8.39.0",
"@wdio/local-runner": "^8.39.1",
"@wdio/mocha-framework": "^8.39.0",
"@wdio/spec-reporter": "^8.39.0",
Expand All @@ -123,6 +122,7 @@
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.3",
"wdio-ctrf-json-reporter": "^0.0.10",
"wdio-vscode-service": "^6.1.0"
},
"dependencies": {
Expand Down

0 comments on commit 0776742

Please sign in to comment.