Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Test assertion review

Checks whether your test assertions would catch a wrong result, so passing tests stop giving false confidence.

What we improved

Removed the dependence on a `test-analysis-extensions` catalog and its per-language files, which are not part of this package. In their place the skill now carries a framework table (how to find tests in MSTest, xUnit, NUnit, FluentAssertio

Improved by YourAISkill from the original by dotnet, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.

Claude's review

8/10 Rigorous assertion-strength review that demands a concrete wrong output for each weak check, with accurate framework traps for MSTest, xUnit, NUnit, FluentAssertions, pytest, Jest and Go.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Analyze weak, shallow, trivial, self-referential, assertion-free, or presence-only assertions; Contains fragments or totals replacing predictable generated code, JSON, CLI, report, or protocol output. Supports MSTest, Jest, pytest, and Go. DO NOT USE for direct assertion fixes (writing-mstest-tests for MSTest, code-testing for other frameworks), new cases (code-testing), missing scenarios or identified production changes (test-gap-analysis), or general severity-ranked audits (test-anti-patterns).

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: assertion-quality
description: "Review test assertions for whether they would catch a wrong result: assertion-free and always-true tests, self-referential checks, lone not-null checks, and above all Contains, substring, regex or count checks that leave predictable output (generated code, JSON, CLI listings, Markdown reports, protocol records, run summaries) mostly unverified. Produces a per-test verdict with a realistic wrong output that would still pass and the exact assertion to use instead. Works for MSTest, xUnit, NUnit, FluentAssertions, pytest, Jest and Go (including testify). Use when someone asks whether their tests really test anything, wants assertion quality or depth reviewed, suspects passing tests give false confidence, or wants freshly written tests self-reviewed before calling them done. Not for writing new test cases, finding missing scenarios, or measuring line coverage."
license: MIT
---

<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by dotnet. See CHANGES.md. -->

# Assertion Quality Analysis

Analyze whether assertions reject wrong observable outcomes, not whether they use varied APIs. Prioritize incomplete checks of predictable output, then assertion-free and vacuous tests. A single exact comparison can fully protect a contract; many fragment checks can leave most of it unprotected. Report assertion-type counts only when they explain a behavioral gap or the user asks for them.

## When to use

- "Are my tests actually testing anything?"; assertion depth or quality reviews
- Tests pass but bugs still ship (false confidence)
- A self-review of newly generated tests before declaring the work finished

Not for: writing new tests, finding untested scenarios, general test-smell audits, or code coverage percentages.

## Inputs

| Input | Required | Description |
|-------|----------|-------------|
| Test code | Yes | Test files or a test project directory |
| Production code | No | The producer, fixtures and assertion helpers behind the tests, used to establish what output is predictable |

## Workflow

### Step 1: Detect the framework

Identify the language and framework from project files and imports, and find tests by their markers:

| Framework | Test markers | Notes for this review |
|---|---|---|
| MSTest | `[TestMethod]`, `[DataTestMethod]` | Assertions: `Assert.*`, `CollectionAssert.*`, `StringAssert.*` |
| xUnit | `[Fact]`, `[Theory]` | `Assert.*`; no `[ExpectedException]` |
| NUnit | `[Test]`, `[TestCase]` | `Assert.That(actual, Is...)` constraint model |
| FluentAssertions (any .NET runner) | `.Should()` | Read options passed to `BeEquivalentTo` |
| pytest / unittest | `def test_*`, `class Test*`, `unittest.TestCase` | Bare `assert`, `pytest.raises`, `self.assert*` |
...

From dotnet's repository, MIT licence.

Related skills

  • Checked

    React Native testing

    Writes React Native Testing Library tests the right way for v13 and v14, so tests stay fast and reliable.

    by callstackincubator 1.7k
    8/101 credit
  • Checked

    JUnit and Mockito tests

    Writes and fixes Java tests with JUnit, AssertJ and Mockito that are deterministic and keep failures visible.

    by github 42k
    8/101 credit
  • Checked

    Test code review

    Reviews new or changed tests in pytest, Jest, Go and more, so weak tests are caught before merge.

    by amElnagdy 1.3k
    7/101 credit
  • Checked

    Go table driven tests

    Writes Go tests with table cases, fakes, fuzzing, benchmarks and golden files that stay fast and reliable.

    by ericrisco 691
    8/101 credit
  • Checked

    MSTest Unit Testing

    Writes modern C# unit tests with current MSTest APIs, assertions, data driven tests and lifecycle patterns.

    by github 42k
    8/101 credit
  • Checked

    Quarkus Testing

    Writes and fixes Quarkus tests using Dev Services containers, with the right profiles, mocks and run commands.

    by github 42k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added