test

test is a command for Claude Code from Sahib-Sawhney-WH/sahibs-claude-plugin-marketplace. It costs 19 tokens per session (590 once invoked), scanned A, original, MIT.

A command for testing Dapr applications with mocked clients, Testcontainers, or a real Dapr sidecar. Testcontainers starts disposable services in containers for realistic tests.

In plain words
What is it for?
Use it to run unit, integration, or end-to-end tests with pytest, optionally using coverage reports, verbose output, or a test filter.
Why use it?
It lets you choose between fast isolated tests and tests that exercise more of the real Dapr environment.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dapr plugin — 9 skills, 14 commands, 8 agents shipped together

Good fit Use it to run unit, integration, or end-to-end tests with pytest, optionally using coverage reports, verbose output, or a test filter.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/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/Sahib-Sawhney-WH/sahibs-claude-plugin-marketplace

Made for: Claude Code.

Or install dapr, the plugin that ships this one along with the rest of its 9 skills, 14 commands, 8 agents.

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/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/test/github.svg)](https://agentmods.dev/commands/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/test)
Your own site
<a href="https://agentmods.dev/commands/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/test"><img src="https://agentmods.dev/badge/commands/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test

Your own site · 80×15
<a href="https://agentmods.dev/commands/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/test"><img src="https://agentmods.dev/badge/commands/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00019 $0.00590
Opus 5 $0.00010 $0.00295
Sonnet 5 $0.00004 $0.00118
Haiku 4.5 $0.00002 $0.00059

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

Security

Grade A, and why

test scanned grade A with 0 findings 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dapr/commands/test.md · 114 lines

How it starts

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

DAPR Test Runner

Run tests for your DAPR application with proper mocking and integration support.

Behavior

When the user runs /dapr:test:

  1. Detect Test Type

    • Check for pytest configuration
    • Identify test directories (tests/, test/)
    • Determine test mode based on arguments
  2. Configure Environment

    • Set up DAPR test fixtures
    • Configure mocking or real sidecar
    • Prepare test components
  3. Run Tests

    • Execute pytest with DAPR fixtures
    • Capture output and coverage
    • Report results

Arguments

Argument Description
unit Run unit tests with mocked DAPR client (default)
integration Run integration tests with Testcontainers
e2e Run end-to-end tests with real DAPR sidecar
--coverage Generate coverage report
--verbose Verbose output
--filter Filter tests by pattern

Test Modes

Unit Tests (Default)

/dapr:test unit

Uses mocked DAPR client for fast, isolated tests:

  • No external dependencies
  • Fastest execution
  • Test business logic only

Integration Tests

/dapr:test integration

Uses Testcontainers for realistic testing:

  • Redis container for state/pubsub
  • Real component behavior
  • Network isolation

End-to-End Tests

/dapr:test e2e

Uses real DAPR sidecar:

  • Full DAPR runtime
  • Production-like environment
  • Slowest but most realistic

Test Structure

tests/
├── conftest.py           # Shared fixtures
├── unit/
│   ├── test_state.py     # State management tests
│   ├── test_pubsub.py    # Pub/sub tests
│   └── test_service.py   # Service invocation tests
├── integration/
│   └── test_e2e.py       # Integration tests
└── docker-compose.test.yaml

Examples

Run All Unit Tests

/dapr:test

Run with Coverage

/dapr:test --coverage

Run Specific Test

/dapr:test --filter test_order_creation

Integration Tests

/dapr:test integration --verbose

Generated Files

Read the full file on GitHub · 114 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. 12d ago First seen · 114 lines · 19 tokens per session scan A 6c734198a11a

Subscribe to this mod's changes

test is a command published in the GitHub repository Sahib-Sawhney-WH/sahibs-claude-plugin-marketplace (4 stars, last pushed 8mo ago), licensed MIT. It adds 19 tokens to every session and 590 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.