Skip to content

Commit

Permalink
SFD-115: Add reports for automated tests (#93)
Browse files Browse the repository at this point in the history
* Add traces artifact to Playwright workflow

* Add pytest-html as a dependency

* Upload HTML report in Playwright workflow

* Upload traces and report as one artifact
  • Loading branch information
jantoun-scottlogic authored Jul 11, 2024
1 parent 1d06a7c commit 4385aa1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/actions/run-playwright/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ runs:
run: npm run playwright-install
shell: bash
- name: Run Playwright tests
run: npm run playwright-test
run: npm run playwright-test -- --tracing=retain-on-failure --html=reports/report.html
shell: bash
- name: Upload Playwright traces and report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-traces-and-report
path: |
playwright/tests/test-results/
playwright/tests/reports/
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ colorama==0.4.6
greenlet==3.0.3
idna==3.7
iniconfig==2.0.0
Jinja2==3.1.4
MarkupSafe==2.1.5
packaging==24.1
playwright==1.44.0
pluggy==1.5.0
psutil==5.9.8
pyee==11.1.0
pytest==8.2.2
pytest-base-url==2.1.0
pytest-html==4.1.1
pytest-metadata==3.1.1
pytest-playwright==0.5.0
pytest-xprocess==1.0.2
python-slugify==8.0.4
Expand Down

0 comments on commit 4385aa1

Please sign in to comment.