This directory contains scripts for testing and CI/CD automation, organized into two categories:
Scripts used by the GitHub Actions CI/CD pipeline:
- run_vader_tests_direct.sh - Direct Vader test runner for CI (no Docker)
- Runs tests directly in GitHub Actions environment
- Installs Vader.vim automatically
- Generates test-results.json and logs
Scripts for local development and testing (using Docker):
- run-tests-docker.sh - Run tests with a specific Python version locally using Docker
- run_tests.sh - Run Vader test suite using Docker Compose
- test-all-python-versions.sh - Test against all supported Python versions
For local development, use Docker Compose to run tests in a consistent environment:
# Test with default Python version (3.11)
./scripts/user/run-tests-docker.sh
# Test with specific Python version
./scripts/user/run-tests-docker.sh 3.11
# Test all Python versions
./scripts/user/test-all-python-versions.sh
# Run Vader tests using docker compose
./scripts/user/run_tests.sh
# Or directly with docker compose
docker compose run --rm python-mode-testsIn GitHub Actions, tests run directly without Docker for faster execution:
- Uses
scripts/cicd/run_vader_tests_direct.sh - Automatically called by
.github/workflows/test.yml - No Docker build/pull overhead
- Same test coverage as local Docker tests
To add new tests, simply create a new .vader file in tests/vader/. Both local Docker and CI test runners will automatically discover and run it.