Cleanroom Testing Framework
🚀 Production Ready: Hermetic integration testing that actually works end-to-end.
A testing framework for hermetic integration testing with container-based isolation and plugin architecture.
🎯 What Works (Verified)
✅ Core Testing Pipeline
clnrm init- Zero-config project initialization with working TOML filesclnrm run- Real container execution with regex validation and output captureclnrm validate- TOML configuration validationclnrm self-test- Framework validates itself across 5 test suites (framework, container, plugin, cli, otel)
✅ Plugin Ecosystem
clnrm plugins- Core service plugins for container and database integration- GenericContainerPlugin - Any Docker image with custom configuration
- SurrealDbPlugin - SurrealDB database with WebSocket support
- NetworkToolsPlugin - curl, wget, netcat for HTTP testing
✅ Service Management
clnrm services status- Real-time service monitoringclnrm services logs- Service log inspectionclnrm services restart- Service lifecycle management
✅ Template System
clnrm template <type>- Generate projects from 5 templates- Default Template - Basic integration testing
- Database Template - Database integration testing
- API Template - API service testing
🚀 Quick Start
Initialize Project
# Zero-configuration project setup
# Generated: tests/basic.clnrm.toml, README.md, scenarios/
Run Tests
# Auto-discover and run all tests
# Real container execution with output validation
# ✅ Container commands execute
# ✅ Regex patterns validate output
# ✅ Test results are accurate
Validate Configuration
# Validate TOML syntax and structure
# ✅ Generated TOML files are valid
# ✅ Configuration structure is correct
List Available Plugins
# Show 6 service plugins
# ✅ Generic containers, databases, network tools
🎯 Real Evidence - Not Claims
Container Execution Works
Framework Self-Tests Work
Plugin Ecosystem Works
)
)
)
🏗️ Architecture
Plugin-Based Architecture
- Service Plugins - Extensible container service management
- Container Isolation - Each test runs in fresh, isolated containers
- Configuration-Driven - TOML-based test definitions
Hermetic Testing
- Container Isolation - Each test runs in completely isolated containers
- Deterministic Execution - Consistent results across environments
- Resource Management - Automatic cleanup and resource limits
📊 Performance
Container Reuse (Foundation Ready)
- Infrastructure for 10-50x performance improvement
- Automatic container lifecycle management
- Service registry for efficient resource usage
Parallel Execution
- Multi-worker test execution
- Resource-aware scheduling
🎮 Commands
| Command | Status | Description |
|---|---|---|
clnrm --version |
✅ Working | Show version information |
clnrm --help |
✅ Working | Show comprehensive help |
clnrm init |
✅ Working | Zero-config project initialization |
clnrm run |
✅ Working | Execute tests with real containers |
clnrm validate |
✅ Working | Validate TOML configuration |
clnrm plugins |
✅ Working | List available service plugins |
clnrm self-test |
✅ Working | Framework self-validation |
clnrm template |
✅ Working | Generate projects from templates |
clnrm services |
✅ Working | Service lifecycle management |
clnrm report |
✅ Working | Generate test reports |
🚀 Getting Started
Prerequisites
- Rust 1.70 or later
- Docker or Podman
- 4GB+ RAM
Installation
Via Homebrew (Recommended)
# Add the tap and install
# Verify installation
Via Cargo
From Source
First Test
# 1. Initialize project
# 2. Run tests (auto-discovery)
# 3. Validate everything works
# 4. Explore plugins
🎯 What Makes This Special
Framework Self-Testing
The framework tests itself through the "eat your own dog food" principle. Every feature is validated by using the framework to test its own functionality.
Hermetic Container Testing
Unlike traditional testing frameworks, clnrm provides true hermetic testing where each test runs in completely isolated, real containers with no test interference.
Universal Test Definition
Single .clnrm.toml files can test any technology stack - databases, APIs, microservices - all through containerized execution.
📚 Documentation
- CLI Guide - Complete command reference
- TOML Reference - Configuration format
🤝 Contributing
See CONTRIBUTING.md for development guidelines and core team standards.
📄 License
MIT License - see LICENSE file for details.
🎉 Verification
Every feature claimed above has been verified through actual execution:
# Verify core functionality
&& &&
# Verify framework self-testing
# Verify plugin ecosystem
Built with ❤️ for reliable, hermetic integration testing. The framework tests itself to ensure maximum reliability and performance.