| name | docker-test |
| description | Test Nimble in Docker. Use when running tests in Linux, reproducing issues in clean environments, or testing in isolated Docker containers. |
| allowed-tools | Bash, Read, Glob |
Testing Nimble in Docker
Build and run tests:
docker build -f tests/Dockerfile.debug -t nimble-debug . && docker run --rm nimble-debug
Run specific tests
Edit tests/Dockerfile.debug CMD line:
- Full suite:
CMD ["./src/nimble", "test"]
- Specific test:
CMD ["./src/nimble", "test", "lock file::"]
- Issue test:
CMD ["./src/nimble", "test", "issues::issue #1251"]
Compare with master
- Stash changes:
git stash
- Checkout master:
git checkout master
- Build:
docker build -f tests/Dockerfile.debug -t nimble-master .
- Run:
docker run --rm nimble-master
- Return:
git checkout nim_lock && git stash pop
Force clean rebuild
docker build --no-cache -f tests/Dockerfile.debug -t nimble-debug .
Interactive debugging
docker run -it --rm nimble-debug bash