Skip to content

Commit

Permalink
runtests script added
Browse files Browse the repository at this point in the history
  • Loading branch information
leela committed Jun 23, 2020
1 parent 8e5b7ef commit c9cd255
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions runtests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /bin/bash
set -e

if [ -z "$TEST_DATABASE_URL" ]
then
dropdb toolkit_test --if-exists
createdb toolkit_test
export TEST_DATABASE_URL=postgres:///toolkit_test
fi
pytest --cov=toolkit --flakes "$@"

0 comments on commit c9cd255

Please sign in to comment.