agentleFS
TJaenichenTJaenichen/claude-code-harness/skills/project/test/SKILL.md

test

Skill0 starsChanged 3 months agoMITView on GitHub

Run unit tests or specific integration test categories. Use after making code changes to verify correctness.

185 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-context-isolation, agentica-infrastructure and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 158 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default to unit api if no arguments

    line 46
  2. Distinctive:

    Run the appropriate test command

    line 47
  3. Distinctive:

    Always specify a category for integration tests.

    line 53
  4. Very specific:

    Use Assert.Fail(), never Assert.Ignore() or Assert.Inconclusive()

    line 57

“Common” is measured: kept by at least 6 in 10 of the 158 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Run Tests

Arguments: $ARGUMENTS

Test projects

ProjectTypePath
API Unit TestsUnitContoso.Payments.Api/Contoso.Payments.API.UnitTests/
API Integration TestsIntegrationContoso.Payments.Api/Contoso.Payments.API.IntegrationTests/
Web Unit TestsUnitContoso.Payments/Contoso.Payments.UnitTests/
Web Integration TestsIntegrationContoso.Payments/Contoso.Payments.IntegrationTests/

Commands

Unit tests (quick, safe to run all):

dotnet test {test-project-path} -p:WarningLevel=0

Integration tests (run specific category only!):

dotnet test {test-project-path} --filter "FullyQualifiedName~{CategoryName}" -p:WarningLevel=0

Integration test categories (API)

List your test fixture classes here, grouped by theme, so the model can pick a category by name instead of running everything. Example shape:

Core: CoreFunctionalityTests, SystemValidationTests Business Rules: DuplicateTransactionTests, VelocityLimitTests, GeographicRestrictionTests Routing: ProcessorSelectionTests, ProcessorCoverageTests Card/Security: CardTypeDetectionTests, PrepaidCardTests, BinRulesTests Errors: ErrorCodeValidationTests

Your task

  1. Parse arguments to determine test type and scope
  2. Default to unit api if no arguments
  3. Run the appropriate test command
  4. Set timeout to 600000ms for integration tests

CRITICAL WARNING

NEVER run all integration tests - this takes over 1 hour! Always specify a category for integration tests.

Testing guidelines

  • Use Assert.Fail(), never Assert.Ignore() or Assert.Inconclusive()
  • Integration tests may take 5-10 minutes per category

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.