Test Plan Generationο
Circuit-synth now includes a specialized Test Plan Creation Agent that helps generate comprehensive test procedures for your circuit designs. This ensures thorough validation before manufacturing.
Overviewο
The test-plan-creator agent analyzes your circuit design and generates:
Functional test procedures
Performance validation tests
Safety compliance testing
Manufacturing test procedures
Equipment recommendations
Pass/fail criteria
Quick Startο
Using with Claude Codeο
# Generate a test plan for your circuit
Task(subagent_type="test-plan-creator", description="Generate test plan", prompt="Create a comprehensive test plan for my ESP32 development board circuit")
Using CLI Commandsο
# Generate a basic test plan
create-test-plan my_circuit.py
# Include performance and safety tests
create-test-plan ESP32_board.py --include-performance --include-safety
# Export to JSON format
create-test-plan circuit.py --format json --output test_plan.json
# Generate manufacturing tests
generate-manufacturing-tests board.py --ict --boundary-scan
Test Plan Categoriesο
1. Functional Testingο
Power-on sequence verification
Reset and initialization testing
GPIO functionality validation
Communication protocol testing
Basic operation verification
2. Performance Testingο
Power consumption measurement
Frequency response characterization
Timing analysis
Load regulation testing
Temperature coefficient testing
3. Safety and Complianceο
ESD protection verification
Overvoltage/overcurrent protection testing
Thermal shutdown validation
EMI/EMC pre-compliance
Isolation barrier testing
4. Manufacturing Testingο
In-circuit testing (ICT) procedures
Boundary scan/JTAG testing
Functional test procedures
Burn-in test specifications
Visual inspection checklists
Example Usageο
Basic Test Plan Generationο
from circuit_synth import Component, Circuit, Net
@circuit(name="USB_Power_Supply")
def create_power_supply():
"""5V USB power supply with protection"""
# ... circuit implementation ...
pass
# Generate test plan using the agent
prompt = """
Analyze the USB_Power_Supply circuit and generate:
1. Functional tests for power delivery
2. Protection circuit validation
3. Manufacturing test procedures
"""
# Use with Claude Code:
# Task(subagent_type="test-plan-creator", prompt=prompt)
Advanced Manufacturing Testsο
# Generate comprehensive manufacturing tests
generate-manufacturing-tests complex_board.py --ict --boundary-scan --fixture
# This generates:
# - ICT test point mapping
# - Boundary scan chain configuration
# - Test fixture specifications
# - Programming procedures
Output Formatsο
Markdown (Default)ο
Human-readable test procedures with:
Clear section headers
Step-by-step instructions
Tables for specifications
Checklists for validation
JSONο
Structured data format for:
Test automation integration
Database storage
API consumption
Programmatic processing
CSVο
Spreadsheet format for:
Test parameter matrices
Measurement limits
Results recording
Excel compatibility
Checklistο
Simple format for:
Quick reference
Pass/fail marking
Production floor use
Printable forms
Test Equipment Recommendationsο
The agent provides equipment specifications based on your circuit:
Voltage Measurements: DMM accuracy requirements
Frequency Analysis: Oscilloscope bandwidth needs
Current Testing: Shunt/probe specifications
Safety Testing: ESD gun, hi-pot tester requirements
Integration with Circuit-Synth Workflowο
Design Phase: Create your circuit in Python
Validation Phase: Generate test plan with the agent
Simulation Phase: Use simulation-expert agent to validate
Manufacturing Phase: Generate production tests
Documentation Phase: Export test procedures
Best Practicesο
Generate Early: Create test plans during design phase
Include All Categories: Donβt skip safety or manufacturing tests
Define Clear Criteria: Specify exact pass/fail thresholds
Consider Production: Design for testability from the start
Update Regularly: Revise test plans as design evolves
Troubleshootingο
No Test Points Identifiedο
Ensure nets are properly named in your circuit
Add test point components explicitly
Use descriptive net names (VCC, GND, SIGNAL_OUT)
Missing Equipment Specsο
Provide voltage/current ranges in circuit
Specify frequency requirements
Include component tolerances
Incomplete Proceduresο
Add more circuit documentation
Include component specifications
Provide functional descriptions
API Referenceο
Agent Toolsο
# Analyze circuit for test points
analyze_circuit(circuit_file, analysis_type="test_points")
# Generate specific test procedure
generate_test_procedure(test_type="functional", circuit_info={})
# Get equipment recommendations
recommend_equipment(measurement_type="voltage", specifications={})
# Create validation checklist
create_validation_checklist(circuit_type="power", requirements=[])
# Export test plan
export_test_plan(format="markdown", test_procedures=[])
CLI Commandsο
# Main test plan command
create-test-plan [OPTIONS] [CIRCUIT_FILE]
--include-performance
--include-safety
--format [markdown|json|csv|checklist]
--output PATH
# Manufacturing test command
generate-manufacturing-tests [OPTIONS] [CIRCUIT_FILE]
--ict
--boundary-scan
--fixture
Contributingο
To improve the test plan agent:
Add new test categories in
test_plan_agent.pyExtend equipment database
Add industry-specific test templates
Improve circuit analysis algorithms
See the Contributor Guide for details.