This dev container is configured to match the GitHub Actions test matrix with the following configuration:
- Ruby version: 3.4
- Redis version: latest
- Rack version: 3
- Open this repository in your editor (Cursor, VS Code, etc.)
- When prompted, click "Reopen in Container" (or run the command "Dev Containers: Reopen in Container")
- Wait for the container to build and start
- Once inside the container, dependencies will be automatically installed via
bundle install
To run the full test suite:
bundle exec rakeTo run a specific test file:
bundle exec ruby test/resque_test.rbTo run tests with verbose output:
VERBOSE=1 bundle exec rakeIf you want to test with different versions, you can modify the environment variables and reinstall dependencies:
# Example: Test with rack 2
export RACK_VERSION=2
bundle install
# Run tests
bundle exec rake
# Reset to original configuration
export RACK_VERSION=3
bundle installThe following environment variables are set to match the test matrix:
REDIS_VERSION: latestRACK_VERSION: 3COVERAGE: 1
A Redis container runs as a sidecar service. From inside the container it is reachable at redis://redis:6379. The devcontainer also forwards port 6379 to your local machine, so you can connect via localhost:6379 from outside the container (e.g. with a Redis GUI).
To connect to Redis CLI from inside the container:
redis-cli -h redisNote: the test suite spins up its own Redis instance on port 9736 — that is separate from this service.
Make sure the Redis container is running:
redis-cli -h redis pingShould return PONG.
If you need to rebuild the container from scratch:
- Run "Dev Containers: Rebuild Container" from the command palette
- Or delete the container and volume manually:
docker compose -f .devcontainer/docker-compose.yml down -v