Apply section heads to test output for clarity.
This also removes a test setup command that added an uploads directory. It's no longer necessary.
This commit is contained in:
@@ -15,12 +15,12 @@ if [ "${RESET_DB}" = "true" ]; then
|
||||
source ./script/get_db_settings
|
||||
|
||||
if [ -n "${PGDATABASE}" ]; then
|
||||
echo "Resetting database ${PGDATABASE}..."
|
||||
output_divider "Reset database ${PGDATABASE}"
|
||||
# Reset the db
|
||||
reset_db "${PGDATABASE}"
|
||||
else
|
||||
echo "ERROR: RESET_DB is set, but PGDATABASE is not!"
|
||||
echo "Skipping database reset..."
|
||||
warning "warning: RESET_DB is set, but PGDATABASE is not!"
|
||||
warning "Skipping database reset..."
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -29,15 +29,18 @@ if [ "${RUN_PYTHON_TESTS}" = "true" ]; then
|
||||
python_test_status=0
|
||||
set +e
|
||||
|
||||
output_divider "Lint Python files"
|
||||
run_python_lint "${PYTHON_FILES}"
|
||||
((python_test_status+=$?))
|
||||
output_divider "Perform static analysis on Python files"
|
||||
run_python_static_analysis "${PYTHON_FILES}"
|
||||
((python_test_status+=$?))
|
||||
output_divider "Run Python unit test suite"
|
||||
run_python_unit_tests "${PYTHON_FILES}"
|
||||
((python_test_status+=$?))
|
||||
|
||||
if [ "${python_test_status}" != "0" ]; then
|
||||
echo "Failed to pass one or more Python checks"
|
||||
warning "Failed to pass one or more Python checks"
|
||||
exit ${python_test_status}
|
||||
fi
|
||||
|
||||
@@ -45,6 +48,8 @@ if [ "${RUN_PYTHON_TESTS}" = "true" ]; then
|
||||
fi
|
||||
|
||||
if [ "${RUN_JS_TESTS}" = "true" ]; then
|
||||
output_divider "Render Vue components"
|
||||
run_python_render_vue_component
|
||||
output_divider "Run JavaScript unit test suite"
|
||||
run_javascript_tests
|
||||
fi
|
||||
|
Reference in New Issue
Block a user