Skip to main content
command CX Codex GP ChatGPT official · OpenAI

test-macos-app — Codex command: macOS tests

This command picks a narrow macOS test run and groups failures by type. Use it when checking an Xcode or Swift project.

Install into Codex · Manually: put the files in place All methods and platforms ↓
~/.codex/prompts/test-macos-app.md
Open on GitHub

What test-macos-app does

test-macos-app works out whether the project should use xcodebuild test or swift test, then runs the smallest useful test scope. A supplied target or filter narrows the run instead of invoking the whole suite. The command also accepts an Xcode scheme, a test target or product, and either Debug or Release configuration.

Failures are sorted into compile errors, failed assertions, crashes, environment or setup problems, and flaky tests. The result calls out the main blocker and the narrowest sensible follow-up. A focused rerun takes priority when the available arguments make one possible.

The workflow also checks for host app setup and simulator-only assumptions that can interfere with a macOS run. When target or filter is present, rerunning the complete suite is unnecessary.

What it helps with

  • run macOS tests with xcodebuild test or swift test
  • narrow execution to a scheme, target, or filter
  • separate build errors from test failures
  • classify crashes and environment problems
  • identify the main blocker and next step

Example prompts for the agent

  • Run /test-macos-app and check the smallest useful macOS scope.
  • Use /test-macos-app target=MyMacTests to focus on the MyMacTests target.
  • Run the LoginTests filter under Release with /test-macos-app filter=LoginTests configuration=Release.

How to install test-macos-app

Manually: put the files in place

~/.codex/prompts/test-macos-app.md

Call it with /prompts:test-macos-app. Codex marks this format deprecated in favour of skills

Questions about test-macos-app

How do I install test-macos-app in Codex?

Place the command file at ~/.codex/prompts/test-macos-app.md.

What does test-macos-app do?

It chooses between xcodebuild test and swift test, runs a focused macOS test scope, and sorts failures into practical categories.

Which arguments does the command accept?

You can provide scheme, target, filter, and configuration. The configuration accepts Debug or Release, with Debug as the default.

Source text

test-macos-app.md · MIT
# /test-macos-app

Run the smallest meaningful macOS test scope first and explain failures by category.

## Arguments

- `scheme`: Xcode scheme name (optional)
- `target`: test target or product name (optional)
- `filter`: test filter expression (optional)
- `configuration`: `Debug` or `Release` (optional, default: `Debug`)

## Workflow

1. Detect whether the repo uses `xcodebuild test` or `swift test`.
2. Prefer focused test execution when a target or filter is provided.
3. Classify failures as compile, assertion, crash, env/setup, or flake.
4. Summarize the top blocker and the narrowest sensible next step.

## Guardrails

- Avoid rerunning the full suite if a focused rerun is possible.
- Distinguish build failures from actual failing tests.
- Note when host app setup or simulator-only test assumptions leak into a macOS run.

© OpenAI · MIT · openai/plugins

Similar slash commands

All slash commands for Testing and QA →

From the same set528

The whole set →
canva-implement-feedback This skill reads every comment thread on a Canva design, makes the clear-cut edits through the API, and lists what still needs a human. CX Codex GP ChatGPT ★ 7,604repo stars canva-design-feedback This skill reviews Canva designs and returns ordered feedback on hierarchy, copy, spacing, readability, and accessibility. It helps when a slide, poster, or flyer needs a clear critique. CX Codex GP ChatGPT ★ 7,604repo stars canva-bulk-create Turns a table of data into one Canva design per row by autofilling a brand template. Useful when you need product cards or posts built from a CSV in one go. CX Codex GP ChatGPT ★ 7,604repo stars canva-brand-check Checks a Canva design against a brand kit and flags visual or copy differences. It only reads the design; it won’t edit it. CX Codex GP ChatGPT ★ 7,604repo stars fix-codesign-error Inspects a macOS signing or entitlement failure and lays out the shortest fix path. Useful when a build refuses to launch or fails validation. CX Codex GP ChatGPT ★ 7,604repo stars build-and-run-macos-app Generates or updates the build_and_run.sh script and connects the Run button in the Codex app. Built for macOS targets using Xcode or SwiftPM. CX Codex GP ChatGPT ★ 7,604repo stars boltz-structure-and-binding This skill runs Boltz to predict structure and binding for one defined complex. Use it to assess a single ligand or a protein interface. CX Codex GP ChatGPT ★ 7,604repo stars boltz-small-molecule-screen Docks a supplied SMILES library against a target, ranks the hits, and returns ADME numbers for every molecule. CX Codex GP ChatGPT ★ 7,604repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor