Local docker container tag being used: b5d5ab012d81
- Build container:
docker build .
- Start the Typescript compiler in watch mode:
npm install && npx tsc --watch
- Given the built container hash, start it mounting the built analysis directory:
docker run -v `pwd`/:/analysis -v `pwd`/test_libs/:/test_libs -ti CONTAINER_TAG bash
- Inside the container, run the analysis with:
cd /test_libs/spawn/
LIBRARY_ROOT_DIR=`pwd` LIBRARY_UNDER_TEST=spawn slim-taser ./node_modules/.bin/mocha test
- Or use the following to run slim-taser in an spurious container:
docker run \
-v `pwd`/:/analysis -v `pwd`/test_libs/:/test_libs \
-w /test_libs/spawn \
-e LIBRARY_ROOT_DIR=/test_libs/spawn \
-e LIBRARY_UNDER_TEST=spawn \
7497c0c769e1 slim-taser ./node_modules/.bin/mocha test