Test Unslop

fikrifirmanfVerified creator@fikrifirmanf0on fikrifirmanf/test-unslop-mcpMCP server + Skill

Verified creator: @fikrifirmanf signed in with the GitHub account that owns this repository. It is not a safety check.

Find ineffective tests, run the available suite, and report whether tests actually executed.

MCP configuration

Copy into a client that accepts mcpServers JSON. Other clients may use a different configuration format.

{
  "mcpServers": {
    "test-unslop": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}

Use this in your own environment. Copying text here does not run it.

Made forDevelopment
What you needNode.js >=18, an MCP client, and a project with tests and its normal test command
Project links
Published version1.0.2
Project licenseMIT
Sources checked2026-10-29

How to use it

  1. Open the project documentation and choose the instructions for your AI client.
  2. Copy the configuration and companion skill command if needed.
  3. Configure the tools in your own environment, then try the example request.

SKILL.md

The instructions your assistant reads, from fikrifirmanf/test-unslop-mcp/skills/test-unslop/SKILL.md. Its authors wrote it, so read it before you install.

name: test-unslop
description: Enforces tests that fail when the code is wrong and eliminates fake, tautological or flaky AI-written tests (JS/TS with Jest/Vitest/node:test/Playwright, Python pytest/unittest, Go, Rust, Swift XCTest/Swift Testing, Kotlin/Java JUnit). Trigger whenever writing, fixing or reviewing tests, or before claiming that tests pass.

Test Anti-Slop Protocol

A test exists to fail when behaviour breaks. AI-written tests often cannot fail: they render a component and assert nothing, compare a value with itself, or mock the unit under test. Then the agent reports "all tests pass" after a run that executed zero tests.

1. Every test can fail (HARD RULES)

  • Assert on behaviour: each test checks an output, a state change, a rendered result, an emitted call or a thrown error. Rendering or calling without asserting is not a test.
  • No tautologies: never expect(true).toBe(true), expect(x).toEqual(x), assert True, assertTrue(true).
  • Assert the value, not existence: prefer toEqual({...}) or toBe(3) over toBeDefined(), toBeTruthy() or is not None.
  • Prove it: for new tests, briefly break the code under test (or invert the expectation) and confirm the test fails, then restore it.
  • Never weaken an assertion, delete a test, or add .skip just to get green. Fix the code or tell the user the test exposes a bug.

2. Failures must surface (HARD BANS)

  • No try { ... } catch {} around assertions; use expect(() => f()).toThrow() or pytest.raises.
  • Always await (or return) expect(promise).rejects/resolves; an un-awaited one never runs.
  • No .only / fit / fdescribe left in the code.
  • Skips carry a reason and a link: @pytest.mark.skip(reason="needs GPU, see #42").

3. Deterministic and hermetic

  • No fixed sleeps (setTimeout promises, time.sleep, waitForTimeout). Use fake timers, findBy/waitFor, or await the event.
  • No real external network in unit tests: stub with MSW, nock, respx, httptest or a local server.
  • No unseeded randomness or wall-clock dependence: fixed data, seeded faker, frozen time.
  • Each test sets up its own state; order must not matter.

4. Test the right thing

  • Mock at the boundary (network, clock, filesystem, payment provider), not your own modules. More than a handful of module mocks means you are testing the mocks.
  • Cover the edge cases that matter: empty input, boundaries, invalid input, error paths, concurrency where relevant.
  • Snapshots supplement explicit assertions; they do not replace them.
  • UI tests query by role and accessible name (getByRole('button', { name: 'Save' })), not CSS classes or test ids, where possible.
  • Name tests after the behaviour: rejects expired coupons, not test1 or works.

5. Mandatory verification loop

Before claiming a testing task (or any task that changed tested code) is complete:

  1. Call audit_test_slop with the modified test files (omit files to audit git changes).
  2. Call find_missing_tests with the changed source files and add tests for uncovered logic, or tell the user why none are needed.
  3. Call run_tests. Report the real result: FAIL means fix; zero tests run is a FAIL; SKIPPED means the runner is missing and tests did not run. Never claim "tests pass" without a PASS from this tool.
  4. Suppress a verified false positive with // unslop-ignore RULE_ID -- reason; a suppression without a reason is an ERROR.

View on GitHub

Other setup options

Companion skill command

Run on your own machine if you want to install the companion skill.

npx -y [email protected] install-skills

Example request

Review the changed tests with test-unslop. Check meaningful assertions, focused or skipped tests, asynchronous failures, and excessive mocking. Run the suite and report the actual result.

Example results

Illustrative example

Review outline - Assert a meaningful output or state change. - Check focused test flags and unawaited assertions. - Review mocks at external boundaries. - Report executed test counts and any failures without claiming skipped checks passed.

Illustrative response outline, not a recorded run.

Illustrative examples show a possible response format. They are not recorded runs or verified results. Actual responses will vary.

Security checks

Automated checks, last run Nov 9, 2026. They can miss problems and do not guarantee a listing is safe. Read the source and what you are asked to run before you use it.

4 of 4 checks passed
  • PassedSetup commands and descriptionLayer 1

    The install commands and description match none of the risky patterns we look for.

    Source: AIWantsThis screening rules

  • PassedInstall scripts and package statusLayer 2

    The npm package runs no code at install time and is not deprecated.

    Source: npm registry

  • PassedKnown vulnerabilities in the packageLayer 2

    OSV.dev lists no advisories for this package.

    Evidence (1)
    [email protected]
    No advisories listed in OSV.dev.

    Source: OSV.dev

  • PassedSource repositoryLayer 2

    The repository is public, not archived and has recent activity.

    Evidence (3)
    Last push
    2026-10-22
    Archived
    no
    License
    MIT

    Source: GitHub