Provides guidelines for running Unity tests using the run_unity_tests tool. Make sure to use this skill whenever running, executing, or re-running tests on the Unity editor. This includes verifying implementations, debugging test failures, running specific test assemblies, or any task that involves the run_unity_tests tool. Also covers running Play Mode tests on the player for verifying player-only behavior (e.g., #if directives and code stripping). Also covers verifying [Category("VisualVerification")] tests after a run by analyzing the saved screenshots. Even if the user just says "run the tests" or "check if it passes", use this skill.
$npx -y skills add nowsprinting/unity-coding-skills --skill run-testsInstalls into the current project.
Run `npx skills use "https://github.com/nowsprinting/unity-coding-skills" --skill "nowsprinting/unity-coding-skills/run-tests"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/nowsprinting/unity-coding-skills" that are relevant to the current task. Run `npx skills add "https://github.com/nowsprinting/unity-coding-skills"` and select the relevant skills, then follow their instructions.