assertion-quality

Analyze assertion diversity and depth across .NET test suites.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Evaluates and reports on the diversity and quality of assertions within .NET test suites, identifying shallow testing, missing assertions, and providing recommendations to improve test coverage.

Core Features & Use Cases

  • Assertion Diversity Analysis: Classify and quantify the types of assertions present.
  • Metrics and Recommendations: Generates detailed reports highlighting strengths and weaknesses of the test suite.
  • Use Case: Ideal for developers or testers seeking to enhance the thoroughness and effectiveness of their tests.

Quick Start

Use the assertion-quality skill to analyze assertions in the 'Tests' folder and compare them to production code for completeness.

Frequently Asked Questions about assertion-quality

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

FAQPage Schema
How do I analyze .NET test suite assertion quality and diversity?

To analyze .NET test suite assertion quality, you can use a tool that classifies and quantifies assertion patterns across MSTest, xUnit, NUnit, and TUnit frameworks. This process identifies shallow testing and missing assertions to generate actionable metrics for improving code correctness.

What are common shallow testing patterns in xUnit or MSTest test suites?

Shallow testing patterns in xUnit or MSTest suites often involve relying on a single assertion type or missing critical state validations. Analyzing assertion diversity helps pinpoint these gaps, providing recommendations to enhance test thoroughness and overall coverage.

Does assertion analysis work with TUnit and NUnit test frameworks?

Yes, assertion analysis works with TUnit and NUnit test frameworks, alongside MSTest and xUnit. The evaluation requires knowledge of these specific frameworks to accurately classify assertion types and propose targeted improvements for your test suites.

How do I get test metrics and recommendations for missing assertions in production code?

To get test metrics and recommendations for missing assertions, you can analyze your Tests folder and compare it against production code. This generates detailed reports highlighting suite strengths, weaknesses, and areas requiring deeper assertion coverage.

What is the best way to improve test coverage thoroughness in .NET testing?

The best way to improve test coverage thoroughness in .NET testing is by assessing assertion variety and depth. By classifying and quantifying assertion types, you can identify shallow tests and apply targeted recommendations to bolster correctness.

When should I evaluate assertion patterns to improve code correctness?

You should evaluate assertion patterns to improve code correctness when your test suite lacks diversity in validations. Analyzing these patterns exposes missing assertions and provides actionable metrics to ensure thorough verification of production logic.