#!/bin/sh

set -e

[ -z "$REDIRECTOR" ] && export REDIRECTOR="redirector.${DEPLOY_TO:=dev}.alphagov.co.uk"

echo REDIRECTOR=$REDIRECTOR

testdir=data/tests

echo "Checking test coverage ..."
tools/test_coverage.sh $testdir/*.csv

echo "Testing static assets ..."
tools/test_static_assets.sh

echo "Testing CSV files from $testdir ..."
tools/test_mappings.pl $@ $testdir/*.csv

#!/bin/sh

set -e

[ -z "$REDIRECTOR" ] && export REDIRECTOR="redirector.${DEPLOY_TO:=dev}.alphagov.co.uk"

echo REDIRECTOR=$REDIRECTOR

testdir=data/tests

echo "Checking test coverage ..."
tools/test_coverage.sh $testdir/*.csv

echo "Testing CSV files from $testdir ..."
tools/test_mappings.pl $@ $testdir/*.csv

echo "Testing static assets ..."
tools/test_static_assets.sh

Reorder smoke tests to gather more information
Reorder smoke tests to gather more information

test_static_assets can fail fast, but especially for reaching feature parity in
bouncer, it's more useful to see the output of test_mappings before the failing
tests in test_static_assets.
