test-audit

Audit test suites (unit, integration, feature/E2E) for correctness, quality, and best practices. Use when the user wants to review, audit, validate, or improve tests in any programming language or framework (Jest, pytest, RSpec, JUnit, PHPUnit, etc.). Triggers on requests like "audit my tests", "review test quality", "check my test coverage", "are my tests good", or any request to evaluate test effectiveness.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "test-audit" with this command: npx skills add juliomrqz/skills/juliomrqz-skills-test-audit

Test Suite Audit

Audit tests for correctness, quality, and adherence to best practices.

Step 1: Clarify Scope

Always ask the user before proceeding:

Would you like me to audit:

  1. A specific file — Provide the path to the test file
  2. Only changed files — I'll audit tests in the diff against main (new or modified tests)
  3. The entire project — I'll scan for all test files in the codebase

Which would you prefer?

Wait for the user's response before continuing.

Step 2: Gather Context

Identify:

  • Language and framework — Jest, pytest, RSpec, JUnit, PHPUnit, etc.
  • Test type — unit, integration, or feature/E2E
  • Code under test — locate and review if available
  • Project conventions — infer from existing tests, config, or docs

Use the project's conventions and tooling to locate test files:

FrameworkTest LocationConfigNaming Pattern
Jest__tests__/, *.test.jsjest.config.js*.test.js, *.spec.js
Vitest__tests__/, *.test.tsvitest.config.ts*.test.ts, *.spec.ts
Mochatest/.mocharc.js, mocha.opts*.test.js, *.spec.js
GoSame as sourcego.mod*_test.go
Rustsrc/, tests/Cargo.tomlmod tests, tests/*.rs
JUnit/Javasrc/test/java/pom.xml, build.gradle*Test.java, *Tests.java
C# (xUnit/NUnit)*.Tests/ project*.csproj*Tests.cs, *Test.cs
PHP (PHPUnit)tests/phpunit.xml*Test.php
Laraveltests/Unit/, tests/Feature/phpunit.xml*Test.php
Symfonytests/phpunit.xml.dist*Test.php
Ruby (RSpec)spec/.rspec, spec_helper.rb*_spec.rb
Railsspec/ or test/.rspec, rails_helper.rb*_spec.rb, *_test.rb
Djangotests/, */tests.pypytest.ini, setup.cfgtest_*.py, *_test.py

Also check for:

  • Package manager scripts (composer test, bundle exec rspec, python manage.py test)
  • CI configuration files for test commands

Step 3: Apply Audit Criteria

See references/audit-criteria.md for the complete checklist covering:

  • Test validity
  • Assertion quality
  • Test isolation
  • Naming and structure (including AAA enforcement)
  • Coverage quality
  • Maintainability
  • Framework conventions

Step 4: Report Findings

For each issue:

### [HIGH | MEDIUM | LOW] Issue Title

**File**: `path/to/test_file.ext`
**Test**: `test name`
**Lines**: X–Y

**Problem**: What's wrong

**Current**:
[code snippet]

**Fix**:
[corrected code]

**Why**: One-sentence rationale

Step 5: Summarize

Conclude with:

  1. Critical issues — false positives, tests that verify nothing
  2. Quality issues — weak assertions, missing edge cases
  3. Style issues — naming, organization, minor fixes
  4. Overall health — one paragraph assessment
  5. Top 3–5 priorities — highest-impact improvements

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

audit-website

Audit websites for SEO, performance, security, technical, content, and 15 other issue cateories with 230+ rules using the squirrelscan CLI. Returns LLM-optimized reports with health scores, broken links, meta tag analysis, and actionable recommendations. Use to discover and asses website or webapp issues and health.

Repository Source
Security

better-auth-security-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
Security

swiftui-performance-audit

No summary provided by upstream source.

Repository SourceNeeds Review
Security

audit-context-building

No summary provided by upstream source.

Repository SourceNeeds Review