tests-run

Run Unity tests in EditMode or PlayMode with configurable filters.

Updated Feb 4, 2024
One-click install
npx skills add https://github.com/sprillion/gem_td --skill tests-run-sprillion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tests-run
Source: https://github.com/sprillion/gem_td/tree/main/SKILLS/tests-run
Command: npx skills add https://github.com/sprillion/gem_td --skill tests-run-sprillion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity projects often require repeated, configurable test runs to validate code changes across different modes and scopes. This skill automates executing Unity tests and returns structured results that are easy to filter and analyze.

Core Features & Use Cases

  • Run tests in EditMode or PlayMode and collect detailed results.
  • Filter by testAssembly, testNamespace, testClass, and testMethod to target specific tests.
  • Return results in a structured format suitable for CI dashboards and reports.

Quick Start

Run a targeted Unity test pass (EditMode) with filters for a specific class and method to see detailed results.

Frequently Asked Questions about tests-run

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Unity tests for a specific class and method?

You can filter Unity test runs by testAssembly, testNamespace, testClass, and testMethod. This allows you to execute targeted test passes instead of running the entire test suite, returning detailed results for the specified scope.

Can I get detailed stack traces and logs from automated Unity test runs?

Yes, automated Unity test runs can be configured to include passing tests, messages, stack traces, and logs. The skill provides a configurable interface to return these detailed results in a structured format for analysis.

Does this Unity test automation support filtering by test assembly and namespace?

Yes, this Unity test automation supports filtering by testAssembly and testNamespace, alongside testClass and testMethod. This allows you to isolate specific test scopes and validate code changes efficiently.

What is the best way to automate Unity EditMode and PlayMode tests for CI reports?

Automating Unity tests for CI reports involves running EditMode or PlayMode tests and returning structured, filterable results. This approach provides configurable outputs including passing tests, messages, and stack traces suitable for dashboards.

Do I need the Unity test framework to run filtered tests with this automation?

Yes, the Unity test framework is required to run filtered tests with this automation. The skill depends on the framework to execute test runs across modes and return detailed, configurable results.