Documentation for the DataJoint’s DJTest Image¶
A docker image for running tests related to DataJoint.
Launch Locally¶
Debian¶
docker-compose -f dist/debian/docker-compose.yaml --env-file config/.env up --build
Alpine¶
docker-compose -f dist/alpine/docker-compose.yaml --env-file config/.env up --build
Features¶
Adds testing libraries: - pytest - pytest-cov - flake8 - black - ptvsd - faker
Applies image compresssion
Testing¶
To rebuild and run tests locally, execute the following statements:
set -a # automatically export sourced variables
. config/.env # source config for build and tests
docker buildx bake -f dist/${DISTRO}/docker-compose.yaml --set *.platform=${PLATFORM} --set *.context=. --load # build image
tests/main.sh # run tests
set +a # disable auto-export behavior for sourced variables
Base Image¶
Build is a child of datajoint/djbase.