elliottsax/autocoder-test-planning-worker
0
Autocoder Test Planning Worker ๐งช
24/7 Autonomous Test Planning Worker
This Hugging Face Space runs continuous test planning analysis, discovering test requirements, edge cases, and failure modes in real-time.
Features
- โ Continuous Analysis - Runs 24/7 automatically
- โ 15 Perspectives - Analyzes from 15 different testing angles
- โ Cloud Storage - Results pushed to HF Datasets
- โ Real-time Monitoring - Live status dashboard
- โ Free Tier Compatible - Runs on HF free infrastructure
How It Works
- Analysis Loop - Worker runs continuous test planning iterations
- Perspective Rotation - Cycles through 15 different analysis perspectives
- Result Storage - Pushes test specifications to HF Dataset
- Monitoring - UI updates every 5 seconds
Analysis Perspectives
- What Are We Testing? - Scope and boundaries
- How Can It Fail? - Failure mode analysis
- Integration Points - Where systems connect
- Edge Cases - Boundary conditions
- Performance - Speed and efficiency
- Backwards Compatibility - Breaking changes
- Data Integrity - Data correctness
- Error Handling - Failure recovery
- User Experience - UX implications
- Security - Vulnerability analysis
- Test Coverage - Coverage gaps
- Test Pyramid - Test structure
- Mocking Strategy - Test isolation
- CI/CD Integration - Automation
- Big Picture Review - Holistic analysis
Configuration
Required Secrets
Add these in Space Settings โ Repository Secrets:
HF_TOKEN- Your Hugging Face access token (write permission)HF_USERNAME- Your HF username (optional, defaults to 'autocoder')
Dataset Output
Results are saved to: {HF_USERNAME}/autocoder-test-planning-results
Usage
Via UI
- Visit this Space
- View real-time status
- Start/stop worker as needed
- View test planning logs
Programmatically
from datasets import load_dataset
# Load all test planning results
dataset = load_dataset("autocoder/autocoder-test-planning-results")
# Get latest results
latest = dataset["train"][-1]
print(latest)Integration with Other Workers
This worker's output is used by:
- Analysis Worker (provides code insights)
- Implementation Worker (uses test plans to guide coding)
- Monitoring Dashboard (visualizes test coverage)
Local Development
# Install dependencies
pip install -r requirements.txt
# Set environment variables
export HF_TOKEN="your_token"
export HF_USERNAME="your_username"
# Run locally
python app.pyDeployment
- Fork this Space or create new
- Configure secrets
- Space will auto-start worker
Monitoring
- Status Updates: Every 5 seconds
- Test Planning Iterations: Every 60 seconds
- Dataset Uploads: After each iteration
Test Specifications Generated
Each iteration produces:
- Failure mode analysis
- Integration point mapping
- Edge case catalog
- Test specifications with code
- Coverage analysis
- Risk assessment
Cost
- Free Tier: Fully compatible
- Persistent: Space keeps running 24/7
- Storage: Dataset grows over time (monitor quota)
Support
For issues or questions, open an issue in the main repository.
License
MIT License - See LICENSE file
