mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 22:18:40 +00:00
17 lines
331 B
Bash
Executable File
17 lines
331 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# script/test: Run test suite for application. Optionallly pass in a path to an
|
|
# individual test file to run a single test.
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
echo "Running tests..."
|
|
|
|
if [ "$1" = "coverage" ]; then
|
|
coverage run -m unittest discover tests
|
|
else
|
|
python3 -m unittest discover tests
|
|
fi
|
|
|
|
script/lint
|