DataTest Pipeline Simulator is a comprehensive framework for simulating, testing, and validating data pipelines end-to-end — with a focus on PySpark and Hadoop-based workflows. Ensure data quality, schema consistency, and performance reliability across your ETL pipelines, from development to production.
- Test entire ETL workflows, not just isolated components
- Generate comprehensive test reports with success/failure metrics
- Create and run simulated data pipelines to validate logic and transformations
- Support for common data processing stages: validation, filtering, enrichment, and output
- Track execution metrics including mean, median, min, and max execution times
- Measure performance at both pipeline and individual stage levels
- Visualize performance data through interactive dashboards
- Generate pipeline flow diagrams using Mermaid.js
- Create interactive HTML dashboards with metrics and execution results
- Export performance data in multiple formats (HTML, Markdown)
- Validate data structure and content throughout the pipeline
- Test data transformations for correctness
- Python 3.8 or higher
- PySpark
- Required Python packages (see
requirements.txt)
# Clone the repository
git clone https://github.com/ysrastogi/DataTest-Pipeline-Simulator.git
cd datatest-pipeline-simulator
# Install dependencies
pip install -r requirements.txt
# (Optional) Install in development mode
pip install -e .-
Configure Your Pipeline
Define your pipeline with stages for data validation, transformation, and output. -
Run Pipeline Simulation
Execute your pipeline using test data to validate its behavior. -
View Results
Check the generated reports in theoutputs/directory, including:- 📉 Pipeline flow diagrams
- 📊 Performance metrics
- ✅ Test results
- 🌐 Interactive dashboards
The datatest CLI enables powerful interaction with the framework to run pipelines, manage configs, execute tests, and launch API services.
# Run a pipeline with parameters
datatest run pipeline etl_workflow --params source=s3://bucket/data --params target=hdfs://cluster/output
# Run tests with tag filtering
datatest test --test-dirs tests/unit,tests/integration --tags spark,performance
# Start an interactive shell
datatest shell
# Initialize configuration with a default template
datatest config init --template default
# Start the API server
datatest api --host 0.0.0.0 --port 8082 --reload# Run a specific pipeline
run pipeline <pipeline_name>
# Run performance benchmarks
run benchmark <benchmark_name>
# Run all tests with optional filtering
test --tags performance
# Validate data/config files
validate
# Config management
config init
config list
config get <key>
config show [section]datatest> run my_pipeline param1=value1 param2=value2
datatest> test --tags performance
datatest> config listA RESTful API is provided for programmatic and remote control of pipeline operations.
POST /pipelines/run: Execute a pipeline with parameters
- Run tests and retrieve results
- Run performance benchmarks and retrieve metrics
- Data and schema validation
- Generate reports and dashboards
Use API key authentication:
- Set
X-API-Keyheader in your requests - Default dev key:
dev-key-for-testing - Override via
DATATEST_API_KEYenvironment variable
curl -X POST http://localhost:8082/pipelines/run \
-H "Content-Type: application/json" \
-H "X-API-Key: your-api-key" \
-d '{
"pipeline_name": "data_transformation",
"parameters": {
"input_path": "/data/source",
"output_path": "/data/target"
}
}'# Initialize configuration
datatest config init
# Run tests to ensure setup is correct
datatest test
# Start the API server
datatest api --port 8082This project is licensed under the MIT License. See the LICENSE file for more information.