File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,12 +114,18 @@ jobs:
114114 disable-animations : true
115115 script : |
116116 adb install example/android/app/build/outputs/apk/debug/app-debug.apk
117- mkdir -p maestro-output
118- maestro test ./example/maestro/ --format junit --output maestro-results.xml || true
119- maestro record ./example/maestro/ --output maestro-output/ || maestro test ./example/maestro/
120- test -f maestro-results.xml && mv maestro-results.xml example/ || echo "No results file"
121- test -d maestro-output && mv maestro-output example/ || echo "No maestro output directory"
122- ls -la example/
117+ mkdir -p example/maestro-output
118+ # Run tests (produce JUnit results) and capture artifacts under example/maestro-output
119+ maestro test ./example/maestro/ --format junit --output example/maestro-results.xml || true
120+ # Run record to capture screenshots & artifacts into the output directory
121+ maestro record ./example/maestro/ --output example/maestro-output/ || true
122+ # If Maestro also wrote to the user home tests dir, copy those into the output dir for upload
123+ if [ -d "$HOME/.maestro/tests" ]; then
124+ mkdir -p example/maestro-output/.maestro-tests
125+ cp -r "$HOME/.maestro/tests/." example/maestro-output/.maestro-tests/ || true
126+ fi
127+ ls -la example/maestro-output || true
128+ ls -la example/ || true
123129
124130 - name : Upload Maestro test results
125131 if : always()
You can’t perform that action at this time.
0 commit comments