# Bevy testing

> Bevy testing is an open-source agent skill for developer tools. Guides deterministic Bevy 0.20 tests with stepped time, headless apps and async draining. It is available on Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/shinyobjectz/raea-skills/tree/main/skills/bevy/pack/bevy-testing
- **Repository:** https://github.com/shinyobjectz/raea-skills
- **GitHub stars:** 38
- **License:** MIT
- **Skill name:** bevy-testing
- **Collection:** https://github.com/shinyobjectz/raea-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill teaches an agent how to test Bevy 0.20 code with a minimal App harness that it controls directly. It covers stepping the app with explicit clock settings, running fixed-timestep systems a known number of times, and inspecting world state or emitted messages afterward. It warns against calling App::run in ordinary tests and against relying on DefaultPlugins when no window, renderer or audio is part of the behaviour under test.

The guidance also explains how to finish async work inside tests without sleeping, using an injected fake executor or a bounded predicate loop that fails with useful task state. It covers the lifecycle of Bevy tasks, including cancellation on drop, and calls for tests of completion, failure and stale results. A review checklist asks for explicit seeds, isolated global state and retained actual, expected and diff images for visual failures.

The skill lists several Bevy 0.20 API changes that affect tests, such as observer generics, iter_many returning Result and renamed state and event helpers. It links to companion skills for input, physics, profiling and migration, and to three reference documents on app and time, messages and observers, and visual regression.

## When your agent uses it

> Use when testing Bevy 0.20 with `App::update`, `TimeUpdateStrategy`, `FixedUpdate`, `MessageCursor`, or `On<E>` observers: deterministic stepping, async-task draining with `poll_once` and no sleeps, headless worlds, and capture-based visual regression.

## What it can access

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

- [Instructions only, no scripts](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-testing)
- [License: MIT](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-testing)

## Features

- **Deterministic time stepping:** Shows how to control the app clock and advance fixed-timestep systems by an exact number of ticks.
- **Headless app setup:** Explains which minimal plugins to add so world tests avoid window, renderer and audio dependencies.
- **Async task draining:** Describes polling Bevy tasks with bounded loops or fake executors instead of sleeps.
- **Observer and message testing:** Covers message cursors, observer effects and deferred command synchronization points.
- **Visual regression capture:** Outlines capturing screenshots and comparing them against versioned baselines with tolerances.
- **Bevy 0.20 migration notes:** Lists renamed and changed APIs that affect test code, such as observer generics and iter_many.

## Good for

- Write a unit test that runs a FixedUpdate system exactly three times
- Test a Bevy async task for completion, cancellation and failure paths
- Set up a headless Bevy app for testing gameplay logic without a window
- Add screenshot-based visual regression tests for a rendered scene
- Check observer and message behaviour in a Bevy plugin

## Install

### Claude Code

This skill ships in the `raea` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add shinyobjectz/raea-skills
/plugin install raea@raea
```

Or copy only this skill to `~/.claude/skills/bevy-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bevy-testing &&
cp -R "$tmp/skills/bevy/pack/bevy-testing" ~/.claude/skills/bevy-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/bevy-testing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/bevy-testing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bevy-testing &&
cp -R "$tmp/skills/bevy/pack/bevy-testing" ~/.agents/skills/bevy-testing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/bevy-testing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/bevy-testing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bevy-testing &&
cp -R "$tmp/skills/bevy/pack/bevy-testing" ~/.cursor/skills/bevy-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/bevy-testing` 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/shinyobjectz/raea-skills.git --path skills/bevy/pack/bevy-testing
```

Or copy the folder to `~/.gemini/skills/bevy-testing` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bevy-testing &&
cp -R "$tmp/skills/bevy/pack/bevy-testing" ~/.copilot/skills/bevy-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/bevy-testing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git
```

Then copy `raea-skills/skills/bevy/pack/bevy-testing` into your agent's skills folder as `bevy-testing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which Bevy version does Bevy testing target?

It targets Bevy 0.20 and notes changes from 0.19 and 0.20 that affect tests.

### Does Bevy testing tell the agent to run App::run in tests?

No. It says not to call App::run in ordinary unit or integration tests.

### How does Bevy testing handle async tasks in tests?

It recommends an injected deterministic executor or stepping the app until a completion predicate holds, with a strict maximum and no sleeps.

### Are there scripts or extra files included?

The skill folder has no scripts. It references three deep-dive documents on app and time, messages and observers, and visual regression.

### How do I install Bevy testing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/bevy-testing to use it in all your projects, or to .claude/skills/bevy-testing in one project. Or install the raea plugin, which includes it: /plugin marketplace add shinyobjectz/raea-skills, then /plugin install raea@raea.

### Does Bevy testing 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 Bevy testing?

Claude Code, Cursor, Codex, 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 Bevy testing?

The closest alternatives to Bevy testing are Bevy core concepts, Bevy, Bevy ecs queries, Bevy migration 0 19 to 0 20 and Bevy ecs components.

## Where this comes from

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

## Alternatives

- [Bevy core concepts](https://ai-powered.com/skills/bevy-core-concepts): Bevy core concepts is an open-source agent skill for developer tools.
- [Bevy](https://ai-powered.com/skills/bevy-shinyobjectz): Bevy is an open-source agent skill for developer tools.
- [Bevy ecs queries](https://ai-powered.com/skills/bevy-ecs-queries): Bevy ecs queries is an open-source agent skill for developer tools.
- [Bevy migration 0 19 to 0 20](https://ai-powered.com/skills/bevy-migration-0-19-to-0-20): Bevy migration 0 19 to 0 20 is an open-source agent skill for developer tools.
- [Bevy ecs components](https://ai-powered.com/skills/bevy-ecs-components): Bevy ecs components is an open-source agent skill for developer tools.
- [Bevy ecs systems](https://ai-powered.com/skills/bevy-ecs-systems): Bevy ecs systems is an open-source agent skill for developer tools.
- [Bevy assets](https://ai-powered.com/skills/bevy-assets): Bevy assets is an open-source agent skill for developer tools.
- [Bevy audio](https://ai-powered.com/skills/bevy-audio): Bevy audio is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/bevy-testing
