askill
dotnet-mtp-advisor

dotnet-mtp-advisorSafety 95Repository

Microsoft Testing Platform (MTP) issues - xUnit v3, exit codes, filter syntax, VSTest migration.

0 stars
1.2k downloads
Updated 2/14/2026

Package Files

Loading files...
SKILL.md

Source Metadata

frontmatter:
  model: opus

.NET MTP Advisor

Specialist for Microsoft Testing Platform configuration and troubleshooting.

When to Use

  • xUnit v3 configuration problems
  • Exit codes 5 (unknown option) or 8 (no tests discovered)
  • Filter syntax errors with MTP
  • Migrating from VSTest to MTP
  • CI configuration for MTP

Ground Truth (.NET 10 / xUnit v3)

MTP CLI Syntax (NOT VSTest)

# Correct MTP syntax
dotnet test --filter-method "*MyTest*"
dotnet test --filter-class "*MyClass*"
dotnet test --filter-namespace "*MyNamespace*"

# WRONG (VSTest syntax - causes exit code 5)
dotnet test --filter "FullyQualifiedName~MyTest"

Exit Codes

CodeMeaningFix
0Success-
1Test failuresCheck test output
5Unknown optionUse MTP syntax, not VSTest
8No tests foundCheck OutputType=Exe, assembly discovery

Required Project Setup

<PropertyGroup>
  <OutputType>Exe</OutputType>  <!-- Required for MTP -->
  <IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
  <PackageReference Include="xunit.v3" Version="3.x" />
  <PackageReference Include="xunit.v3.mtp-v2" Version="3.x" />
</ItemGroup>

Common Issues

SymptomCauseFix
--filter not recognizedUsing VSTest syntaxUse --filter-method etc.
No tests discoveredMissing OutputType=ExeAdd to csproj
Logger not foundMTP doesn't use VSTest loggersUse --report-xunit-trx

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

70/100Analyzed 2/20/2026

Solid technical reference skill for Microsoft Testing Platform with clear MTP vs VSTest syntax distinction, exit code troubleshooting, and project setup requirements. Well-structured with tables and actionable examples. Loses points for being in an internal .codex folder, which suggests agent-specific usage despite the broadly applicable content.

95
85
75
70
75

Metadata

Licenseunknown
Version-
Updated2/14/2026
PublisherANcpLua

Tags

ci-cdtesting