Skip to main content
This guide covers the testing workflow for components, templates, and tools before submitting contributions.

Testing Philosophy

All components must be tested before submission. Testing ensures components install correctly, work as expected, and don’t break existing functionality.
Aim for 70%+ test coverage on critical paths and error handling.

Component Testing

Dry-Run Installation

Test component installation without making changes:
Dry-run should:
  • Download component files successfully
  • Show what would be installed
  • Not create any files
  • Not show any errors

Actual Installation Test

Test real installation in a test project:

Component-Specific Testing

Testing Agents

Testing Commands

Testing Hooks

Testing MCPs

Testing Settings

Template Testing

Test complete template installations:

Template Quality Checks

  • CLAUDE.md is comprehensive and well-documented
  • All referenced files exist
  • Commands work as expected
  • MCPs are properly configured
  • Settings are valid and complete
  • No hardcoded secrets or paths
  • Documentation includes usage examples

Tool Testing

For contributors working on additional tools (analytics, health check, chat monitor):

Analytics Dashboard

Chat Monitor

Health Check

Automated Testing

Running Test Suite

API Endpoint Testing

ALWAYS test API endpoints before deploying to production. Broken endpoints can affect download tracking and analytics.

Component Reviewer Validation

This is a REQUIRED step before submitting any component.
Use the component-reviewer agent to validate your component:
The reviewer checks:
  • ✅ Valid format and structure
  • ✅ Required fields present
  • ✅ Proper naming conventions
  • ✅ No security issues
  • ✅ Supporting files exist
  • ✅ Best practices followed
Fix all critical issues before proceeding.

Integration Testing

Test how your component works with existing components:

Performance Testing

For components that may affect performance:

Regression Testing

Ensure your changes don’t break existing functionality:

Pre-Submission Checklist

Before submitting your pull request:
1

Component Reviewer Validation

Fix all critical issues.
2

Dry-Run Test

Verify no errors.
3

Actual Installation Test

Verify files created correctly.
4

Update Catalog

Verify no errors during generation.
5

Run Test Suite

All tests should pass.
6

API Tests (if modified)

Verify endpoints still work.

Common Testing Issues

Component Not Found

Installation Fails

Hook Not Triggering

Next Steps

After successful testing:
  1. Commit your changes
  2. Push to your fork
  3. Submit pull request
See the Publishing Workflow for the complete submission process.