Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docker/entrypoint-unit-tests-devDocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ unset DD_DATABASE_URL
python3 manage.py makemigrations dojo
python3 manage.py migrate

python3 manage.py test dojo.unittests --keepdb -v 3
echo "Swagger Schema Tests - Broken"
echo "------------------------------------------------------------"
python3 manage.py test dojo.unittests -v 3 --no-input --tag broken && true

echo "Unit Tests"
echo "------------------------------------------------------------"
python3 manage.py test dojo.unittests -v 3 --no-input --exclude-tag broken

# you can select a single file to "test" unit tests
# python3 manage.py test dojo.unittests.test_npm_audit_scan_parser.TestNpmAuditParser --keepdb -v 3
Expand Down
8 changes: 7 additions & 1 deletion docker/entrypoint-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ EOF

python3 manage.py migrate

python3 manage.py test dojo.unittests -v 3 --no-input
echo "Swagger Schema Tests - Broken"
echo "------------------------------------------------------------"
python3 manage.py test dojo.unittests -v 3 --no-input --tag broken && true

echo "Unit Tests"
echo "------------------------------------------------------------"
python3 manage.py test dojo.unittests -v 3 --no-input --exclude-tag broken
Loading