Skip to content

Commit

Permalink
Add guidance for debugging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
goulter committed Jan 16, 2025
1 parent 98d56ce commit 3f5d17f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ services:
volumes:
- ${CREDENTIAL_MOUNT_POINT}:/secrets:ro
- ${REPORT_MOUNT_POINT}:/tmp/webdriver-report
command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444 tests/test_2fa_duo.py::test_remember_me_cookie
command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444
# command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444 tests/test_2fa_duo.py::test_remember_me_cookie #If you want to run one more specific tests, use this command instead of the above.
# command: echo "The test would start here" #If you don't want the tests to run, and test other things like notifications, use this command instead of the above.

selenium:
Expand Down
4 changes: 4 additions & 0 deletions docs/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ Remove the line `command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444`
You can replace to with `command: echo "The test would start here"`.
That will not run the tests and instead, it will put an entry in the logs/terminal that says "The test would start here".
You'll still see the test run and end notifications but the tests won't run.
You can also run a specific test with this command:
`command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444 path/to/testfile` or
`command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444 path/to/testfile::<test_name>`
`command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444 tests/test_2fa_duo.py::test_remember_me_cookie`

[test workflow]: https://github.com/UWIT-IAM/uw-idp-web-tests/actions/workflows/automated-idp-web-tests.yml
[Github Actions UI]: https://github.com/uwit-iam/uw-idp-web-tests/actions

0 comments on commit 3f5d17f

Please sign in to comment.