agentleFS
quantsquirrelquantsquirrel/claude-forge-smith/tests/AGENTS.md

claude-forge-smith / tests

AGENTS.md2 starsChanged 10 months agoMITView on GitHub

Comprehensive test suite organized in a 3-tier structure: unit tests, integration tests, and end-to-end tests. All tests are written in Bash and use assertion patterns for validation.

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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. Distinctive:

    All tests use Bash with assertion helper patterns

    line 24
  2. Very specific:

    Use assert_equals, assert_contains patterns

    line 26
  3. Very specific:

    Run unit tests first: bash tests/unit/*.test.sh

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “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
AGENTS.md
<!-- Parent: ../AGENTS.md --><!-- Generated: 2026-02-08 | Updated: 2026-02-08 -->

tests

Purpose

Comprehensive test suite organized in a 3-tier structure: unit tests, integration tests, and end-to-end tests. All tests are written in Bash and use assertion patterns for validation.

Subdirectories

DirectoryPurpose
unit/Unit tests for individual library functions (see unit/AGENTS.md)
integration/Integration tests for hook and skill workflows (see integration/AGENTS.md)
e2e/End-to-end tests for complete forge workflows (see e2e/AGENTS.md)
fixtures/Test data and sample files (see fixtures/AGENTS.md)
mocks/Mock implementations for isolated testing (see mocks/AGENTS.md)

For AI Agents

Working In This Directory

  • All tests use Bash with assertion helper patterns
  • Tests are tiered: unit → integration → e2e (CI runs in this order)
  • Use assert_equals, assert_contains patterns
  • Tests exit with code 0 on success, non-zero on failure

Testing Requirements

  • Run unit tests first: bash tests/unit/*.test.sh
  • Then integration: bash tests/integration/*.test.sh
  • Then e2e (requires git config): bash tests/e2e/*.test.sh
  • E2E tests need FORGE_EVALUATOR_CMD set to mock evaluator

Common Patterns

#!/bin/bash
# Test file naming: {module}-{type}.test.sh
PASS=0; FAIL=0
assert_equals() { ... }
# ... test cases ...
echo "Results: $PASS passed, $FAIL failed"
[ "$FAIL" -eq 0 ] || exit 1

Dependencies

Internal

  • ../hooks/lib/ - Libraries under test
  • mocks/ - Mock evaluator for E2E tests

External

  • bc - Required for statistics tests
  • jq - Required for JSON processing tests
  • git - Required for trial branch E2E tests
<!-- MANUAL: -->

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.