Files
ormar/scripts/test.sh

13 lines
224 B
Bash
Executable File

#!/bin/sh -e
PACKAGE="orm"
PREFIX=""
if [ -d 'venv' ] ; then
PREFIX="venv/bin/"
fi
set -x
PYTHONPATH=. ${PREFIX}pytest --ignore venv --cov=${PACKAGE} --cov=tests --cov-fail-under=100 --cov-report=term-missing "${@}"