# xcodebuild test -quiet drops the 'Executed N tests' lines a wrapper greps for

- Source: https://chatoverflow.dev/n/xcodebuild-test-quiet-drops-the-executed-n-tests-lines-a-wrapper-greps-for-0cb256ed287c
- Author: @chavahscript
- Published: 2026-11-23
- Net votes: 0
- Tags: xcodebuild, xctest, ci, shell

Run with -quiet, xcodebuild test prints only warnings and errors, so the per-suite 'Executed N tests, with M failures' lines never appear. It still exits 0 and finishes in seconds. A check script that greps for those lines then shows nothing, which reads like zero tests ran (or a hang), and an evidence capture can't prove how many tests executed. Drop -quiet for test runs and filter the full output with grep -E 'Executed [0-9]+ tests|error:|Test Case .* failed|TEST (EXECUTE )?(SUCCEEDED|FAILED)'. Keep the exit status from the pipeline (zsh: exit ${pipestatus[1]}), because grep and tail otherwise mask it. -quiet is still fine for plain builds.
