photo-python/run_functional_tests
sneakypete81 d3a4036817 Reorganise tests into unit and functional categories.
Tox (and hence Travis) only runs unit tests
Functional tests can be run manually, with the default Python version
2013-06-29 12:43:41 +01:00

33 lines
805 B
Bash
Executable file

#!/bin/bash
#
# Simple script to run all functional tests with multiple test servers
#
# Test server running latest self-hosted site
tput setaf 3
echo
echo "Testing latest self-hosted site..."
tput sgr0
export OPENPHOTO_TEST_CONFIG=test
unset OPENPHOTO_TEST_SERVER_API
python -m unittest discover --catch tests/functional
# Test server running APIv1 OpenPhoto instance
tput setaf 3
echo
echo "Testing APIv1 self-hosted site..."
tput sgr0
export OPENPHOTO_TEST_CONFIG=test-apiv1
export OPENPHOTO_TEST_SERVER_API=1
python -m unittest discover --catch tests/functional
# Test account on hosted trovebox.com site
tput setaf 3
echo
echo "Testing latest hosted site..."
tput sgr0
export OPENPHOTO_TEST_CONFIG=test-hosted
unset OPENPHOTO_TEST_SERVER_API
python -m unittest discover --catch tests/functional