From 4b0c4168444947f825246fb004dd8bb0d56ae554 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 17 Sep 2015 09:08:58 -0700 Subject: [PATCH] Use pytest for running tests --- script/bootstrap_server | 2 +- script/test | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/script/bootstrap_server b/script/bootstrap_server index c68e198c0149..8d71e01fa78d 100755 --- a/script/bootstrap_server +++ b/script/bootstrap_server @@ -7,4 +7,4 @@ echo "Installing dependencies..." python3 -m pip install --upgrade -r requirements_all.txt echo "Installing development dependencies.." -python3 -m pip install --upgrade flake8 pylint coveralls pytest +python3 -m pip install --upgrade flake8 pylint coveralls pytest pytest-cov diff --git a/script/test b/script/test index 753ec340fd6b..56fe4dcec898 100755 --- a/script/test +++ b/script/test @@ -5,12 +5,12 @@ cd "$(dirname "$0")/.." +script/lint + echo "Running tests..." if [ "$1" = "coverage" ]; then - coverage run -m unittest discover tests + py.test --cov homeassistant tests else - python3 -m unittest discover tests + py.test tests fi - -script/lint