# Axiom run tests

> Axiom run tests is an open-source agent skill for developer tools. Runs Xcode UI tests and analyzes xcresult bundles for failures and attachments. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-run-tests
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-run-tests
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through running XCUITests with xcodebuild, using a fresh result bundle for each run so earlier results are preserved. It first checks the project for schemes and targets, looks for a booted iOS simulator, and inspects any running xcodebuild processes before starting a build.

Once a run finishes, the agent reads the outcome through xcresulttool: a pass/fail summary, per-test details and console logs. It can export failure screenshots and videos, or all attachments, and pull code coverage data. It also works through common UI test failure patterns such as missing elements, timeouts and state mismatches, and reports results with suggested fixes and rerun commands.

The skill expects a macOS machine with Xcode, command-line tools, jq and an Xcode project or workspace with a UI test target. The optional axbuild wrapper is used when available, with a saved-log fallback otherwise.

## When your agent uses it

> Use when the user wants to run XCUITests, parse test results, view test failures, or export test attachments.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-run-tests)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-run-tests)

## Features

- **Scheme and target discovery:** Lists the project's schemes and test targets and checks simulator availability before running tests.
- **Scoped test execution:** Runs a whole test target, a single test class or method, or skips selected tests using xcodebuild.
- **Result bundle parsing:** Reads pass and fail counts, per-test status and details from xcresult bundles with xcresulttool.
- **Failure attachment export:** Exports screenshots and videos from failed tests, or all attachments, with a manifest listing them.
- **Code coverage export:** Exports coverage data from a result bundle to a chosen output directory.
- **Failure pattern analysis:** Categorizes common UI test failures such as missing elements, timeouts and state mismatches with suggested fixes.

## Good for

- Run my UI tests and tell me which ones failed
- Run only the LoginTests class on the booted simulator
- Export the failure screenshots from my last test run
- Show the console log from a failed XCUITest
- Export code coverage from the latest test results

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-run-tests` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/axiom-run-tests &&
cp -R "$tmp/axiom-codex/skills/axiom-run-tests" ~/.claude/skills/axiom-run-tests &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/axiom-run-tests` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/axiom-run-tests` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/axiom-run-tests &&
cp -R "$tmp/axiom-codex/skills/axiom-run-tests" ~/.agents/skills/axiom-run-tests &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/axiom-run-tests` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/axiom-run-tests` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/axiom-run-tests &&
cp -R "$tmp/axiom-codex/skills/axiom-run-tests" ~/.cursor/skills/axiom-run-tests &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/axiom-run-tests` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/CharlesWiltgen/Axiom.git --path axiom-codex/skills/axiom-run-tests
```

Or copy the folder to `~/.gemini/skills/axiom-run-tests` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/axiom-run-tests`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/axiom-run-tests &&
cp -R "$tmp/axiom-codex/skills/axiom-run-tests" ~/.copilot/skills/axiom-run-tests &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/axiom-run-tests` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git
```

Then copy `Axiom/axiom-codex/skills/axiom-run-tests` into your agent's skills folder as `axiom-run-tests`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Axiom run tests need to run?

It needs Xcode with xcrun, xcodebuild and xcresulttool, jq, an Xcode project or workspace with a UI test target, and a booted iOS simulator. It also works with the optional axbuild wrapper or a saved-log fallback.

### Does Axiom run tests delete test results?

It asks the agent to warn before deleting .xcresult bundles with rm -rf, and the guidelines say not to delete them without user permission.

### Does Axiom run tests rerun builds automatically?

No. The wrapper never rebuilds automatically, and the instructions tell the agent to read an existing log before considering another build.

### How do I install Axiom run tests in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/axiom-run-tests to use it in all your projects, or to .claude/skills/axiom-run-tests in one project.

### Does Axiom run tests run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Axiom run tests?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Axiom run tests?

The closest alternatives to Axiom run tests are Axiom debug tests, Axiom testing, Axiom analyze test failures, Axiom test simulator and Axiom build.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Axiom debug tests](https://ai-powered.com/skills/axiom-debug-tests): Axiom debug tests is an open-source agent skill for developer tools.
- [Axiom testing](https://ai-powered.com/skills/axiom-testing-charleswiltgen-2): Axiom testing is an open-source agent skill for developer tools.
- [Axiom analyze test failures](https://ai-powered.com/skills/axiom-analyze-test-failures): Axiom analyze test failures is an open-source agent skill for developer tools.
- [Axiom test simulator](https://ai-powered.com/skills/axiom-test-simulator): Axiom test simulator is an open-source agent skill for developer tools.
- [Axiom build](https://ai-powered.com/skills/axiom-build-charleswiltgen-2): Axiom build is an open-source agent skill for developer tools.
- [Axiom fix build](https://ai-powered.com/skills/axiom-fix-build): Axiom fix build is an open-source agent skill for developer tools.
- [Xcuitest skill](https://ai-powered.com/skills/xcuitest-skill): Xcuitest skill is an open-source agent skill for developer tools.
- [Axiom shipping](https://ai-powered.com/skills/axiom-shipping-charleswiltgen-2): Axiom shipping is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-run-tests
