tunit-test-filtering

Run focused TUnit tests via treenode filters on the compiled test executable.

413|64|Updated Feb 7, 2023
One-click install
npx skills add https://github.com/christianhelle/refitter --skill tunit-test-filtering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tunit-test-filtering
Source: https://github.com/christianhelle/refitter/tree/main/.copilot/skills/tunit-test-filtering
Command: npx skills add https://github.com/christianhelle/refitter --skill tunit-test-filtering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refitter test projects use TUnit on Microsoft.Testing.Platform. In this repo, dotnet test --filter ... is not supported by the compiled test application, so the fastest reliable way to run a tiny subset of tests is through the generated test executable and a tree-node filter.

Core Features & Use Cases

  • Tree filter syntax for precise test discovery and execution
  • Clear guidance on using the compiled test executable across Windows and POSIX environments
  • Practical examples to run specific test trees without executing the entire suite

Quick Start

Run the generated test executable and apply a tree-node filter to execute only the desired tests.

Frequently Asked Questions about tunit-test-filtering

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

FAQPage Schema
How do I run a subset of TUnit tests in Refitter when dotnet test --filter is not supported?

To run a subset of TUnit tests in Refitter, execute the compiled test application directly and apply a treenode-filter to select specific test trees without running the entire suite. This bypasses the unsupported dotnet test --filter command on Microsoft.Testing.Platform.

What is a treenode filter in TUnit and when should I use it?

A treenode filter in TUnit is a syntax pattern for precise test discovery and execution. Use it when you need to run a tiny subset of tests in Refitter projects where standard filtering is unavailable on Microsoft.Testing.Platform.

Does TUnit on Microsoft.Testing.Platform support dotnet test --filter?

No, TUnit on Microsoft.Testing.Platform does not support dotnet test --filter for Refitter test projects. You must use the generated test executable with treenode-filter syntax for focused test execution instead.

How do I use the compiled test executable to run specific test trees across Windows and POSIX environments?

Use the compiled test executable generated by your Refitter project and apply treenode-filter syntax to run specific test trees. This approach provides clear guidance for reliable test selection across Windows and POSIX environments.

What are the limitations of using treenode filters for test execution in Refitter?

Treenode filters require using the compiled test executable instead of standard dotnet test commands. This limitation applies specifically to Refitter test projects using TUnit on Microsoft.Testing.Platform where dotnet test --filter is unsupported.