test

test is a command for Claude Code from aborroy/aiup-alfresco. It costs 20 tokens per session (3,629 once invoked), scanned A, original, Apache-2.0.

A test generator for Alfresco extensions that creates integration tests using Testcontainers, a tool that starts services in Docker for testing. The tests can start the Alfresco Content Services stack themselves, so no already-running server is needed.

In plain words
What is it for?
It creates Maven test files for Platform JARs, Share JARs, and event handlers, based on the project's requirements and generated files.
Why use it?
It removes the manual work of setting up Alfresco before each integration test and keeps tests in the project module they cover.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

Part of the aiup-alfresco plugin — 38 skills, 25 commands, 3 agents, 3 hooks shipped together

Good fit It creates Maven test files for Platform JARs, Share JARs, and event…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/aborroy/aiup-alfresco/test
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/aborroy/aiup-alfresco

Made for: Claude Code.

Or install aiup-alfresco, the plugin that ships this one along with the rest of its 38 skills, 25 commands, 3 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test

README.md
[![agentmods](https://agentmods.dev/badge/commands/aborroy/aiup-alfresco/test.svg)](https://agentmods.dev/commands/aborroy/aiup-alfresco/test)
Your own site
<a href="https://agentmods.dev/commands/aborroy/aiup-alfresco/test"><img src="https://agentmods.dev/badge/commands/aborroy/aiup-alfresco/test.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,629 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.03629
Opus 5 $0.00010 $0.01814
Sonnet 5 $0.00004 $0.00726
Haiku 4.5 $0.00002 $0.00363

Measured 3d ago against content hash efe77fc14005, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

test scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Plain shell scripts using `curl` + `jq`
commands/test.md · 405 lines

How it starts

The opening of the file, as written. The whole thing — 405 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/test — Test Generator

Generate tests for the Alfresco extension.

Input

Read REQUIREMENTS.md and all generated artefacts from previous commands. Resolve the project Root path values from Section 2 (Project Architecture) before writing tests.

  • Generate Platform JAR tests only when a Platform JAR project exists.
  • Generate Share JAR tests only when a Share JAR project exists.
  • Generate Event Handler tests only when an Event Handler project exists.
  • In Mixed mode, write each test file under its own project root; do not place both test suites in the same module.

Output Files

In-Process SDK (Maven) — Platform JAR / AMP

1. Testcontainers Integration Test

{platform-project-root}/src/test/java/{package}/{Name}ContainerIT.java

Self-contained: starts the ACS stack from compose.yaml via DockerComposeContainer, runs all scenarios, then tears everything down. No pre-running ACS instance required.

@Testcontainers(disabledWithoutDocker = true)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class {Name}ContainerIT {

    @Container
    static final DockerComposeContainer<?> STACK =
            new DockerComposeContainer<>(new File("{compose-file-relative-path}"))
                    .withExposedService("alfresco_1", 8080,
                            Wait.forHttp("/alfresco/api/-default-/public/alfresco/versions/1/probes/-ready-")
                                    .withStartupTimeout(Duration.ofMinutes(10)))
                    .withLocalCompose(true);

    private String nodesApi;
    private String authHeader;
    private HttpClient http;

    @BeforeAll
    void setup() throws Exception {
        String host = STACK.getServiceHost("alfresco_1", 8080);
        int    port = STACK.getServicePort("alfresco_1", 8080);
        nodesApi   = "http://" + host + ":" + port
                   + "/alfresco/api/-default-/public/alfresco/versions/1/nodes";
        authHeader = "Basic " + Base64.getEncoder()
                .encodeToString("admin:admin".getBytes(StandardCharsets.UTF_8));
        http = HttpClient.newHttpClient();
        // create any shared test folder structure here
    }

    @AfterAll
    void cleanup() throws Exception {
        // permanently delete all test data
    }

    // @Test methods using java.net.http.HttpClient against nodesApi
}

Read the full file on GitHub · 405 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 405 lines · 20 tokens per session scan A efe77fc14005

Subscribe to this mod's changes

test is a command published in the GitHub repository aborroy/aiup-alfresco (13 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 3,629 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.