]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:white_check_mark: Error out when tests fail
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 9 Dec 2018 15:56:37 +0000 (19:56 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Sun, 9 Dec 2018 15:56:37 +0000 (19:56 +0400)
scripts/test.sh

index e2b76b2379e45be490784152f12ba5f08a0455c6..041fabc5dc0fd2c5f28b464f7cd38350160deee9 100644 (file)
@@ -1,9 +1,11 @@
-#!/bin/sh -e
+#!/usr/bin/env bash
+
+set -e
+set -x
 
 export VERSION_SCRIPT="import sys; print('%s.%s' % sys.version_info[0:2])"
 export PYTHON_VERSION=`python -c "$VERSION_SCRIPT"`
 
-set -x
 
 PYTHONPATH=. pytest --cov=fastapi --cov=tests --cov-fail-under=100 --cov-report=term-missing ${@} --cov-report=html
 mypy fastapi --disallow-untyped-defs