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