This directory contains all test scripts for the Resume Processing Pipeline.
- Executes all test scripts in sequence
- Provides colored output and error handling
- Sets up paths and environment
Usage:
./scripts/testing/run-tests.sh- Tests the Model Context Protocol server functionality
- Validates initialization, health checks, and resume analysis
- Tests both stdio and HTTP modes
Usage:
./scripts/testing/test-mcp.shWhat it tests:
- MCP server initialization
- Health endpoint functionality
- Resume analysis tool
- JSON-RPC communication
- Tests GitHub Actions workflows locally using ACT
- Validates workflow syntax and execution
- Checks Docker container builds
Usage:
./scripts/testing/test-act.sh # Basic tests
./scripts/testing/test-act.sh --full # Full tests with Docker buildsWhat it tests:
- ACT installation and Docker availability
- Required files presence
- Shell script syntax validation
- Python script compilation
- LinkedIn template generator functionality
- GitHub Actions workflow execution (dry run)
- Optional: Full Docker build tests
- Go binary:
resume-processor-mcpbuilt in project root - Python 3 with
json.toolmodule
- ACT installed
- Docker running
- Required project files:
Dockerfilescripts/process_resume.shscripts/linkedin_template_generator.pyscripts/requirements.txt.github/workflows/resume-pipeline.yml.actrc.secrets
All scripts automatically:
- Detect their own location
- Calculate the project root (two levels up)
- Change to project root for execution
- Use relative paths from project root
This ensures tests work regardless of where they're called from.
- All scripts use
set -efor fail-fast behavior - Colored output for easy identification of issues
- Cleanup on exit
- Error messages with context
These scripts are designed to be:
- Run manually during development
- Integrated into CI/CD pipelines
- Called from project root or any subdirectory
- Used for debugging components
# Run all tests
./scripts/testing/run-tests.sh
# Test only MCP functionality
./scripts/testing/test-mcp.sh
# Test ACT workflows (basic)
./scripts/testing/test-act.sh
# Test ACT workflows with full Docker builds
./scripts/testing/test-act.sh --full
# From any directory
cd local/
../scripts/testing/run-tests.sh # Still works!