Skip to content

Commit 58cda52

Browse files
author
Ayooluwa
committed
fix: use testaignite as AI reporter, align CI to cypress:run:ai script
1 parent f4190ad commit 58cda52

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@ jobs:
2424
run: npm ci
2525

2626
- name: Cypress Run & AI Enrichment
27-
run: npm run cypress:run:full
27+
run: npm run cypress:run:ai
2828
env:
29-
CYPRESS_email: ${{ secrets.REGWATCH_EMAIL }}
30-
CYPRESS_password: ${{ secrets.REGWATCH_PASSWORD }}
31-
HUGGINGFACE_API_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
32-
33-
- name: Generate Combined HTML Report
34-
if: always()
35-
run: npm run generate:html
29+
CYPRESS_REGWATCH_EMAIL: ${{ secrets.REGWATCH_EMAIL }}
30+
CYPRESS_REGWATCH_PASSWORD: ${{ secrets.REGWATCH_PASSWORD }}
31+
CYPRESS_HUGGINGFACE_API_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
3632

3733
- name: Upload Test Artifacts
3834
if: always()

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"clean:reports": "npx rimraf cypress/reports",
8+
"clean:reports": "rm -rf cypress/reports",
99
"cypress:open": "cypress open",
10-
"cypress:run": "npm run clean:reports && cypress run",
11-
"cypress:run:full": "npm run clean:reports && npx cypress run && npx testaignite report:full",
12-
"generate:html": "npx mochawesome-merge cypress/reports/.jsons/*.json > cypress/reports/merged-report.json && npx marge cypress/reports/merged-report.json -o cypress/reports/html"
10+
"cypress:run": "cypress run",
11+
"cypress:run:ai": "npm run clean:reports && cypress run && npx testaignite report:full"
1312
},
1413
"keywords": [],
1514
"author": "",

0 commit comments

Comments
 (0)