#!/bin/bash

export PREFIX=""
if [ -d "venv" ] ; then
    export PREFIX="venv/bin/"
fi

set -ex

${PREFIX}poetry run pytest --ignore .venv --cov=djantic --cov-fail-under=100 --cov-report=term-missing "${@}"
