Skip to content

Commit c1731c6

Browse files
committed
Add Chrome logs display on test failure
Added a step to show Chrome logs on test failure.
1 parent eb4460b commit c1731c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
# For debugging:
1313
# bats ./tests/test.bats --show-output-of-passing-tests --verbose-run --print-output-on-failure
1414

15+
bats::on_failure() {
16+
echo "Test failed, running debug commands..."
17+
ddev logs -s selenium-chrome
18+
}
19+
1520
setup() {
1621
set -eu -o pipefail
1722

@@ -107,3 +112,4 @@ teardown() {
107112
assert_success
108113
health_checks
109114
}
115+

0 commit comments

Comments
 (0)