From 1bd281f2a2b1730a6fc516b800131beeb988a1f1 Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Fri, 14 May 2021 10:31:48 +0300 Subject: [PATCH] Adds convenience script for running integration tests. --- apps/cic-ussd/tests/integration/run.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apps/cic-ussd/tests/integration/run.sh diff --git a/apps/cic-ussd/tests/integration/run.sh b/apps/cic-ussd/tests/integration/run.sh new file mode 100644 index 00000000..0004f17f --- /dev/null +++ b/apps/cic-ussd/tests/integration/run.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ -z "$TEST_SERVER_URL" ]; +then + echo "The test server url is not set !" + exit 1 +fi + +if [ -z "$TEST_GIFT_VALUE" ]; +then + echo "The test gift value is not set !" + exit 1 +fi + +if [ -z "$TEST_TOKEN_SYMBOL" ]; +then + echo "The test token symbol is not set !" + exit 1 +fi + +PYTHONPATH=. tavern-ci test_accounts.tavern.yaml --debug -vv --log-level debug -s --log-cli-level debug