filter-syntax

Explain test filter syntax for MSTest, NUnit, xUnit, and TUnit.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ojrojas/AgentsInstructions --skill filter-syntax-ojrojas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: filter-syntax
Source: https://github.com/ojrojas/AgentsInstructions/tree/main/.claude/skills/dotnet-test/skills/filter-syntax
Command: npx skills add https://github.com/ojrojas/AgentsInstructions --skill filter-syntax-ojrojas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill unit offers a comprehensive reference guide for test filter syntax across various platforms and frameworks, enabling developers to write more effective and concise test cases.

Core Features & Use Cases

  • Comprehensive Reference: Covers VSTest, MTP filters for MSTest/NUnit/xUnit v3/TUnit, and VSTest-to-MTP filter translation.
  • User-Invocable: Not directly invoked by the user; instead, used by related tools like run-tests, mtp-hot-reload, and migrate-vstest-to-mtp.
  • Frameworks Supported: MSTest, xUnit v2, NUnit on VSTest, xUnit (v3) on MTP, TUnit.

Quick Start

Utilize this skill's references in your testing workflow for efficient filtering of tests in various test frameworks.

Frequently Asked Questions about filter-syntax

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

FAQPage Schema
How do I write filter expressions to select specific tests in MSTest or NUnit?

Filter expressions for MSTest and NUnit use specific VSTest syntax operators to match test names, traits, or namespaces for efficient test selection. This guide provides the exact syntax structure needed.

What is the syntax difference between VSTest and MTP test filters?

VSTest and MTP test filters differ in their supported operators and framework targeting. This reference provides a direct VSTest-to-MTP filter translation guide to help migrate MSTest, NUnit, xUnit, and TUnit test selections.

Does the filter syntax support xUnit v3 and TUnit frameworks?

Yes, the filter syntax supports xUnit v3 and TUnit through the MTP filter structure. It provides developers with the specific expression patterns needed to target tests across these newer frameworks.

How do I apply test filter syntax when running tests in my workflow?

You apply test filter syntax indirectly through related testing tools like run-tests, mtp-hot-reload, and migrate-vstest-to-mtp. This skill acts as a background reference to help these tools construct accurate test selection filters.

Can I translate my existing VSTest filters to MTP format automatically?

Yes, you can translate VSTest filters to MTP format using the migrate-vstest-to-mtp tool. This skill provides the underlying syntax reference that ensures your VSTest expressions are accurately converted to MTP filter equivalents.