Merge pull request #392 from balloob/test-runner

Use pytest for running tests
This commit is contained in:
Paulus Schoutsen 2015-09-17 19:21:33 -07:00
commit 5bb88909a0
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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