cucumber for days (#5766)

This commit is contained in:
Anthony Stirling
2026-02-21 23:17:28 +00:00
committed by GitHub
parent 7631b222bd
commit 30c258ce0b
40 changed files with 4079 additions and 49 deletions

View File

@@ -108,6 +108,7 @@ capture_file_list() {
-not -path '*/tmp/stirling-pdf/jetty-*/*' \
-not -path '*/tmp/stirling-pdf/lu*' \
-not -path '*/tmp/stirling-pdf/tmp*' \
-not -path '*/tmp/stirling-pdf/stirling-pdf-*.pdf' \
2>/dev/null | xargs -I{} sh -c 'stat -c \"%n %s %Y\" \"{}\" 2>/dev/null || true' | sort" > "$output_file"
# Check if the output file has content
@@ -131,6 +132,7 @@ capture_file_list() {
-not -path '*/tmp/stirling-pdf/jetty-*/*' \
-not -path '*/tmp/lu*' \
-not -path '*/tmp/tmp*' \
-not -path '*/tmp/stirling-pdf/stirling-pdf-*.pdf' \
2>/dev/null | sort" > "$output_file"
if [ ! -s "$output_file" ]; then
@@ -539,8 +541,14 @@ main() {
capture_file_list "$CONTAINER_NAME" "$BEFORE_FILE"
CUCUMBER_REPORT="$PROJECT_ROOT/testing/cucumber/report.html"
CUCUMBER_JUNIT_DIR="$PROJECT_ROOT/testing/cucumber/junit"
mkdir -p "$CUCUMBER_JUNIT_DIR"
cd "testing/cucumber"
if python -m behave; then
if python -m behave \
-f behave_html_formatter:HTMLFormatter -o "$CUCUMBER_REPORT" \
-f pretty \
--junit --junit-directory "$CUCUMBER_JUNIT_DIR"; then
echo "Waiting 5 seconds for any file operations to complete..."
sleep 5