mirror of
https://github.com/home-assistant/core
synced 2024-08-06 09:34:49 +02:00
Use pytest for running tests
This commit is contained in:
parent
737d7c9d22
commit
4b0c416844
@ -7,4 +7,4 @@ echo "Installing dependencies..."
|
|||||||
python3 -m pip install --upgrade -r requirements_all.txt
|
python3 -m pip install --upgrade -r requirements_all.txt
|
||||||
|
|
||||||
echo "Installing development dependencies.."
|
echo "Installing development dependencies.."
|
||||||
python3 -m pip install --upgrade flake8 pylint coveralls pytest
|
python3 -m pip install --upgrade flake8 pylint coveralls pytest pytest-cov
|
||||||
|
@ -5,12 +5,12 @@
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
script/lint
|
||||||
|
|
||||||
echo "Running tests..."
|
echo "Running tests..."
|
||||||
|
|
||||||
if [ "$1" = "coverage" ]; then
|
if [ "$1" = "coverage" ]; then
|
||||||
coverage run -m unittest discover tests
|
py.test --cov homeassistant tests
|
||||||
else
|
else
|
||||||
python3 -m unittest discover tests
|
py.test tests
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script/lint
|
|
||||||
|
Loading…
Reference in New Issue
Block a user