From 79b38d98a77b062ca6da00fe9c089a55406cd8d6 Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Fri, 28 Aug 2020 14:36:02 +0200 Subject: [PATCH] Bigfix in the test runner command. --- rosetta/test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rosetta/test b/rosetta/test index 9ec936b..b20bf4d 100755 --- a/rosetta/test +++ b/rosetta/test @@ -1,6 +1,6 @@ #!/bin/bash -# Example: ./run_webapp_unit_tests.sh rosetta.core_app.tests.test_apis.ApiTests.test_api_web_auth +# Example: rosetta/test rosetta.core_app.tests.test_apis.ApiTests.test_api_web_auth # You probably want to set DJANGO_LOG_LEVEL to ERROR and ROSETTA_LOG_LEVEL to DEBUG if you are doing tdd. DJANGO_LOG_LEVEL="CRITICAL" @@ -10,4 +10,4 @@ ROSETTA_LOG_LEVEL="CRITICAL" DJANGO_DB_ENGINE="django.db.backends.sqlite3" DJANGO_DB_NAME=":memory:" -rosetta/shell webapp "export DJANGO_DB_ENGINE=$DJANGO_DB_ENGINE && export DJANGO_DB_NAME=$DJANGO_DB_NAME && cd /opt/webapp_code && python3 manage.py makemigrations && DJANGO_LOG_LEVEL=$DJANGO_LOG_LEVEL ROSETTA_LOG_LEVEL=$ROSETTA_LOG_LEVEL python3 manage.py test $@" +rosetta/shell webapp "export DJANGO_DB_ENGINE=$DJANGO_DB_ENGINE && export DJANGO_DB_NAME=$DJANGO_DB_NAME && cd /opt/code && DJANGO_LOG_LEVEL=$DJANGO_LOG_LEVEL ROSETTA_LOG_LEVEL=$ROSETTA_LOG_LEVEL python3 manage.py test $@" -- GitLab