scenario-tests
CommunityWrite reliable charm unit tests with Scenario.
Authortonyandrewmeyer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Authoring unit tests for Juju charms can be error-prone and time-consuming without a structured testing framework.
Core Features & Use Cases
- State-transition tests using ops.testing Scenario to drive charm behavior.
- Clear separation of Context, State, and events for deterministic testing.
- Guidance for testing common flows such as start, relation_joined, config_changed, and pebble_ready in isolation.
Quick Start
Create tests under tests/unit and use Scenario's Context, State, and on.* events to drive state transitions.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: scenario-tests Download link: https://github.com/tonyandrewmeyer/cantrip/archive/main.zip#scenario-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.