Skip to content
test logo

Plugin Test Suite

test

Runs automated tests to validate plugin integrity across 14 categories. Use before creating PRs, after making changes to skills or templates, or to verify plugin health.

SKILL.md

Full skill instructions

Your Task

Input: $ARGUMENTS

Run automated tests to validate plugin integrity. Execute each test methodically and report results clearly.

Default: Run all tests if no argument provided.


Plugin Test Suite

You are the plugin's automated test runner. Execute each test, track pass/​fail, and report actionable results.

Quick Automated Tests (/​test quick)

For fast automated validation, run the pytest suite:

~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/ -v

This covers:

  • plugin tests (tests/​plugin/) - Frontmatter, templates, references, links, terminology, consistency, config, state, genres, integration
  • unit tests (tests/​unit/) - State parsers/​indexer, shared utilities, mastering functions

Run specific categories:

~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/​plugin/​test_skills.py -v       # Skills only
~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/​plugin/ -v                      # All plugin tests
~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/​unit/ -v                        # All unit tests
~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/ -m "not slow" -v               # Skip slow tests

Pytest catches common issues fast. For deep behavioral tests, use the full test suite below.

Output Format

════════════════════════════════════════
CATEGORY: Test Category Name
════════════════════════════════════════

[PASS] Test name
[FAIL] Test name
       → Problem: what's wrong
       → File: path/​to/​file:line
       → Fix: specific fix instruction

────────────────────────────────────────
Category: X passed, Y failed
────────────────────────────────────────

At the end:

════════════════════════════════════════
FINAL RESULTS
════════════════════════════════════════
config:       X passed, Y failed
skills:       X passed, Y failed
templates:    X passed, Y failed
...
────────────────────────────────────────
TOTAL:        X passed, Y failed, Z skipped
════════════════════════════════════════

TEST CATEGORIES

All test definitions are in test-definitions.md.

14 categories: config, skills, templates, workflow, suno, research, mastering, sheet-music, release, consistency, terminology, behavior, quality, e2e.

Read that file before running tests to understand what each test checks.


RUNNING TESTS

Commands

CommandDescription
/​test or /​test allRun all tests
/​test quickRun Python test runner (fast automated checks)
/​test configConfiguration system tests
/​test skillsSkill definitions and docs
/​test templatesTemplate file tests
/​test workflowAlbum workflow documentation
/​test sunoSuno integration tests
/​test researchResearch workflow tests
/​test masteringMastering workflow tests
/​test sheet-musicSheet music generation tests
/​test releaseRelease workflow tests
/​test consistencyCross-reference checks
/​test terminologyConsistent language tests
/​test behaviorScenario-based tests
/​test qualityCode quality checks
/​test e2eEnd-to-end integration test

Quick Tests via Pytest

For rapid validation during development, use pytest directly:

# Run all tests
~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/ -v

# Run specific test modules
~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/​plugin/​test_skills.py ${CLAUDE_PLUGIN_ROOT}/​tests/​plugin/​test_templates.py -v

# Verbose with short tracebacks
~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/ -v --tb=short

# Quiet mode (for CI/​logs)
~/​.bitwize-music/​venv/​bin/​python3 -m pytest ${CLAUDE_PLUGIN_ROOT}/​tests/ -q --tb=line

Test modules in tests/​plugin/:

  • test_skills.py - Frontmatter, required fields, model validation
  • test_templates.py - Template existence and structure
  • test_references.py - Reference doc existence
  • test_links.py - Internal markdown links
  • test_terminology.py - Deprecated terms check
  • test_consistency.py - Version sync, skill counts
  • test_config.py - Config file validation
  • test_state.py - State cache tool validation
  • test_genres.py - Genre directory cross-reference
  • test_integration.py - Cross-skill prerequisite chains

Adding New Tests

When bugs are found:

  1. Identify which category the test belongs to
  2. Add a test that would have caught the bug
  3. Run /​test [category] to verify test fails
  4. Fix the bug
  5. Run /​test [category] to verify test passes
  6. Commit both the fix and the new test

Rule: Every bug fix should add a regression test.


EXECUTION TIPS

  • Use Grep with output_mode: content and -n for line numbers
  • Use Glob to find files by pattern
  • Use Read to check file contents
  • Use Bash sparingly (YAML/​JSON validation)
  • Report exact file:line for failures
  • Provide specific, actionable fix instructions
  • Group related tests for readability
  • Skip tests gracefully if prerequisites missing

More skills from bitwize-music-studio

setup logo
bitwize-music-studio/claude-ai-music-skills

setup

Detects your Python environment and guides you through installing plugin dependencies. Use on first-time setup or when MCP server fails to start.

531 0
View
album-art-director logo
bitwize-music-studio/claude-ai-music-skills

album-art-director

Creates visual concepts for album artwork and generates AI art prompts. Use during planning for concept discussion, or after all tracks are Final for actual artwork generation.

531 0
View
resume logo
bitwize-music-studio/claude-ai-music-skills

resume

Finds an album by name and shows detailed status with next steps. Use when the user mentions an album name or wants to continue previous work.

531 0
View
import-art logo
bitwize-music-studio/claude-ai-music-skills

import-art

Places album art files in the correct audio and content directory locations. Use when the user has generated or downloaded album artwork that needs to be saved.

531 0
View
promo-director logo
bitwize-music-studio/claude-ai-music-skills

promo-director

Generates 15-second vertical promo videos for social media from mastered audio. Use after mastering is complete and before release, when the user wants social media content.

531 0
View
researchers-journalism logo
bitwize-music-studio/claude-ai-music-skills

researchers-journalism

Researches investigative articles, interviews, and news coverage. Use when research needs journalistic sources for cross-referencing or additional context.

531 0
View
promo-reviewer logo
bitwize-music-studio/claude-ai-music-skills

promo-reviewer

Reviews and iterates on social media copy in album promo/ files. Use after populating promo templates and before release to polish platform-specific posts.

531 0
View
next-step logo
bitwize-music-studio/claude-ai-music-skills

next-step

Analyzes album state and recommends the optimal next action. Use when the user asks "what should I do next?" or "what's left to do?

531 0
View
researcher logo
bitwize-music-studio/claude-ai-music-skills

researcher

Conducts investigative-grade research with primary source analysis, cross-verification, and trial-level depth. Use when an album needs factual research, source material, or verification of claims.

531 0
View
researchers-biographical logo
bitwize-music-studio/claude-ai-music-skills

researchers-biographical

Researches personal backgrounds, interviews, motivations, and humanizing details. Use when research needs biographical context about people involved in the album's subject.

531 0
View
new-album logo
bitwize-music-studio/claude-ai-music-skills

new-album

Creates a new album with the correct directory structure and templates. Use IMMEDIATELY when the user says 'make a new album' or similar, before any discussion.

531 0
View
validate-album logo
bitwize-music-studio/claude-ai-music-skills

validate-album

Validates album directory structure, file locations, and content integrity. Use before release or whenever the user wants to check an album's structural health.

531 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View