-
Notifications
You must be signed in to change notification settings - Fork 13
Run Unit Tests Locally
softcat477 edited this page Jun 1, 2023
·
4 revisions
- Download docker image for CI jobs
docker pull ddmal/ci-jobs:<tag>
- Start and detach a container using the image:
docker run -itd -v <absolute path to rodan>/rodan-main/code:/code/Rodan ddmal/ci-jobs:<tag>
- Go into the container:
docker ps
to get the container ID.
docker exec -it <container ID> bash
to go into the container.
- Inside the container:
bash /run/prepare-ci.bash
- Inside the container:
DJANGO_DEBUG_MODE=True
cd /code/Rodan; python manage.py test --no-input --pattern="test_*" rodan/test/
cd /code/Rodan; python manage.py test --no-input rodan.test.views.testIndividual_interactive
cd /code/Rodan; python manage.py test --no-input rodan.test.views.testIndividual_workflowrun
cd /code/Rodan; python manage.py test --no-input rodan.test.test_all_jobs
cd /code/Rodan; python manage.py test --no-input rodan.test.testIndividual_mimetype_identification
- Repository Structure
- Working on Rodan
- Testing Production Locally
- Working on Interactive Classifier
- Job Queues
- Testing New Docker Images
- Set up Environment Variables
- Set up SSL with Certbot
- Set up SSH with GitHub
- Deploying on Staging
- Deploying on Production
- Import Previous Data