mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-13 02:54:27 +00:00
c0e072a2e2
* some debug code to help track down slow processing times for mi tasks with larget data sets w/ burnettk * use mapping cache for task models and bpmn processes and some linting cleanup * some minor bugfixes w/ burnettk * assign the correct bpmn process to the given guid w/ burnettk * fixed data migration tests w/ burnettk * unit tests are passing w/ burnettk * integration tets are passing w/ burnettk * some cleanup while code reviewing w/ burnettk * some more cleanup w/ burnettk * pass new args to TaskService in data migration w/ burnettk * fixed broken test w/ burnettk * allow running acceptance tests without keycloak w/ burnettk --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com>
22 lines
806 B
Bash
Executable File
22 lines
806 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function error_handler() {
|
|
echo >&2 "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
|
|
exit "$2"
|
|
}
|
|
trap 'error_handler ${LINENO} $?' ERR
|
|
set -o errtrace -o errexit -o nounset -o pipefail
|
|
|
|
if [[ ! -f ./src/instance/db_unit_testing_gw0.sqlite3 ]]; then
|
|
echo >&2 -e "ERROR: please run the following command first in order to set up and migrate the sqlite unit_testing database:\n\n\tSPIFFWORKFLOW_BACKEND_DATABASE_TYPE=sqlite ./bin/recreate_db clean"
|
|
exit 1
|
|
fi
|
|
|
|
# check if python package pytest-xdist is installed
|
|
if ! poetry run python -c "import xdist" &>/dev/null; then
|
|
echo >&2 -e "ERROR: please install the python package pytest-xdist by running poetry install"
|
|
exit 1
|
|
fi
|
|
|
|
SPIFFWORKFLOW_BACKEND_DATABASE_TYPE=sqlite poet test -n auto -x --random-order "$@"
|