atst/script/test
2018-12-13 15:52:24 -05:00

29 lines
582 B
Bash
Executable File

#!/bin/bash
# script/test: Run static code checks and unit tests
source "$(dirname "${0}")"/../script/include/global_header.inc.sh
export FLASK_ENV=test
# create upload directory for app
mkdir uploads | true
# Enable database resetting
RESET_DB="true"
# Define all relevant python files and directories for this app
PYTHON_FILES="./app.py ./atst/** ./config"
# Enable Python testing
RUN_PYTHON_TESTS="true"
# Enable Javascript testing
RUN_JS_TESTS="true"
# Check python formatting
source ./script/format check
# Run the shared test script
source ./script/include/run_test