Testing

From NiceEval/NiceEval · View interactive version

Testing is an AI agent skill from the GitHub repository NiceEval/NiceEval. Write or review NiceEval properties, choose a public test boundary, and reproduce and fix bugs with reduced counterexamples.

How to use this skill

Skill file

Testing

Read the affected Feature and its 性质 section, then the testing contract and test architecture.

  1. Identify the rule at risk. Find the existing property or derive one from the Feature. Define the public observation, the rule, and the generated actions before writing test code.
  2. Select the tool and entry point from the surface table. Generate legal action sequences and express path-specific preconditions in the rule.
  3. For a bug, obtain the failing observation and shrink its action sequence before editing production code. Save the reduced counterexample in the property's fast-check examples or in the Bombadil spec's regressions directory. Then fix the production cause and verify both exploration and replay.
  4. Follow the run matrix. Run the affected Vitest files locally and a short Bombadil test for the affected UI spec when applicable. Leave environment-dependent projects and the legacy scenario suites to CI. Report the commands and any retained repro trace or seed and path.

Use the guide that matches the task:

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.