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
Add keep-failed-containers flag for debugging integration tests
Introduces the ability to preserve Docker containers when integration tests
fail, making debugging significantly easier. This feature matches the
implementation in java-buildpack and php-buildpack.
Changes:
- Add --keep-failed-containers CLI flag to integration.sh script
- Add KeepFailedContainers boolean flag to integration test settings
- Update all 12 integration test files with conditional container cleanup
- Log failed test container names for easy identification
When a test fails with --keep-failed-containers flag enabled, the container
is preserved for inspection rather than being automatically deleted. This
allows developers to:
- Inspect container logs with docker logs
- Enter the container with docker exec
- Debug the exact state that caused the test failure
Usage: ./scripts/integration.sh --github-token <token> --keep-failed-containers
0 commit comments