Web testing

From MRCalderon3D/everything-game-dev-code · View interactive version

Web testing is an AI agent skill from the GitHub repository MRCalderon3D/everything-game-dev-code. Test browser games with fast unit tests for pure logic, headless smoke tests, and a deliberate browser matrix.

How to use this skill

Skill file

Web Testing

Purpose

Test browser games with fast unit tests for pure logic, headless smoke tests, and a deliberate browser matrix.

Use When

Inputs

Process

  1. keep game rules, scoring, collision math, and save serialization in pure modules with no browser globals, and cover them with fast unit tests
  2. make simulation deterministic for tests: seedable random, fixed timestep, and a step function that can be advanced N ticks without rendering
  3. write scenario tests that step the simulation through real sequences (spawn, collide, score, die) and assert end state, not implementation details
  4. add a headless browser smoke test that loads the built game, waits for boot, and fails on console errors, missing assets, or a blank canvas
  5. run a manual matrix pass before release across the main desktop engines and at least one real touch device, checking input, audio unlock, resize, and save persistence

Outputs

Quality Bar

Common Failure Modes

Related Agents

Related Commands

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.