From c1731c6eacc0041a8dcc53e74f78fad9bcbbe8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dezs=C5=91=20BICZ=C3=93?= Date: Tue, 11 Nov 2025 15:52:59 +0100 Subject: [PATCH] Add Chrome logs display on test failure Added a step to show Chrome logs on test failure. --- tests/test.bats | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test.bats b/tests/test.bats index d606a0f..90af88e 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -12,6 +12,11 @@ # For debugging: # bats ./tests/test.bats --show-output-of-passing-tests --verbose-run --print-output-on-failure +bats::on_failure() { + echo "Test failed, running debug commands..." + ddev logs -s selenium-chrome +} + setup() { set -eu -o pipefail @@ -107,3 +112,4 @@ teardown() { assert_success health_checks } +