From 0361abecdea507142561fc235093ccbbb4db96c9 Mon Sep 17 00:00:00 2001
From: Lluis Gifre <lluis.gifre@cttc.es>
Date: Mon, 25 Oct 2021 18:30:59 +0200
Subject: [PATCH] Updated local tests script

---
 run_local_tests.sh | 28 +++++++++-------------------
 1 file changed, 9 insertions(+), 19 deletions(-)

diff --git a/run_local_tests.sh b/run_local_tests.sh
index 4efd6073b..e65c72562 100755
--- a/run_local_tests.sh
+++ b/run_local_tests.sh
@@ -25,22 +25,12 @@ coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
 coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
     context/tests/test_unitary.py
 
-#coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
-#    device/tests/test_unitary_driverapi.py \
-#    device/tests/test_unitary_service.py
-
-#coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
-#    service/tests/test_unitary.py
-
-#coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
-#    compute/tests/test_unitary.py
-
-## Run integration tests and analyze coverage of code at same time
-#export DB_ENGINE='redis'
-#export REDIS_SERVICE_HOST='10.1.7.194'
-## Find exposed port for Redis service port 6379
-#export REDIS_SERVICE_PORT=$(kubectl --namespace gitlab-ci get service redis-public -o 'jsonpath={.spec.ports[?(@.port==6379)].nodePort}')
-#export REDIS_DATABASE_ID='0'
-#coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
-#    context/tests/test_database_engine_redis.py \
-#    tester_integration/test_context_device_service.py
+coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
+    device/tests/test_unitary_driverapi.py \
+    device/tests/test_unitary_service.py
+
+coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
+    service/tests/test_unitary.py
+
+coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
+    compute/tests/test_unitary.py
-- 
GitLab