You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: run single integration tests from dev mode (#14486)
* feat: allow running single integration tests from dev mode
Add integration-tests service with a Docker Compose profile to the dev
override, so a single integration test can be run against the running
dev stack without switching environments via setEnv.sh.
Also ignore the harmless Cross-Origin-Opener-Policy Chrome warning in
integration tests (occurs over HTTP) and remove the now-unnecessary
DD_SECURE_CROSS_ORIGIN_OPENER_POLICY overrides. Configure logging in
the integration test base class so test output is visible.
* fix: keep DD_SECURE_CROSS_ORIGIN_OPENER_POLICY in integration tests override
The base_test_class.py change to ignore the COOP warning is not yet on
the bugfix branch, so the full integration test suite still needs this
setting to avoid Chrome SEVERE console errors over HTTP.
* fix: add executable bit and platform: linux/amd64 for integration-tests
- Set executable bit on run-integration-test-dev.sh
- Add platform: "linux/amd64" to integration-tests service in both dev
and integration_tests overrides (Chromium doesn't work on aarch64)
Copy file name to clipboardExpand all lines: readme-docs/DOCKER.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -353,6 +353,20 @@ Check the logs with:
353
353
docker compose logs -f integration-tests
354
354
```
355
355
356
+
### Running a single integration test from dev mode
357
+
358
+
If your dev stack is already running (`docker/setEnv.sh dev && docker compose up`), you can run a single integration test without switching environments.
359
+
The dev override includes an `integration-tests` service behind a Docker Compose profile, so it won't start during normal `docker compose up`.
360
+
361
+
Make sure the dev containers are up and healthy before running the test:
"skipping javascript errors related to known issues images, see https://github.com/DefectDojo/django-DefectDojo/blob/master/tests/base_test_class.py#L324",
431
+
logger.debug(
432
+
"skipping javascript errors related to known issues, see https://github.com/DefectDojo/django-DefectDojo/blob/master/tests/base_test_class.py#L324",
0 commit comments