diff --git a/e2e/run_tests b/e2e/run_tests index 0e3f09769e..9453685b28 100755 --- a/e2e/run_tests +++ b/e2e/run_tests @@ -40,6 +40,24 @@ for workspace_dir in ./workspaces/*; do app_name="$(basename "$workspace_dir")" _h1 "run tests for app \"$app_name\" on platform \"$platform\"" + ### Debugging tests + if [ "$(basename "$workspace_dir")" = "demo_app" ]; then + + _h2 "$app_name" "run debuggings tests" + + while IFS= read -r line; do + _h3 "$app_name" "debugging" "$line" + done < pipe & + + maestro --verbose --platform "$platform" test --include-tags debugging --exclude-tags "$exclude_tags" "$workspace_dir" 1>pipe 2>&1 || WORKSPACE_PASS=false + + if [ "$WORKSPACE_PASS" = "false" ]; then + _h2 "$app_name" "FAIL! Expected debug tests to pass, but at least some failed instead" + maestro hierarchy > ~/.maestro/debug_hierarchy.txt + ALL_PASS=false + fi + fi + ### ### Run passing tests ### diff --git a/e2e/workspaces/demo_app/commands_tour.yaml b/e2e/workspaces/demo_app/commands_tour.yaml index 80b3ea1990..79bb7a67d7 100644 --- a/e2e/workspaces/demo_app/commands_tour.yaml +++ b/e2e/workspaces/demo_app/commands_tour.yaml @@ -1,7 +1,7 @@ # This flow exercises as many commands as possible, using as many configurations as possible. appId: com.example.example tags: - - passing + - debugging - android # TODO: Make this iOS compatible (or skip platform-specific tests) env: THING: "five"