incubator-airflow/run_unit_tests.sh

22 строки
562 B
Bash
Исходник Обычный вид История

export AIRFLOW_HOME=${AIRFLOW_HOME:=~/airflow}
export AIRFLOW_CONFIG=$AIRFLOW_HOME/unittests.cfg
# Generate the `airflow` executable if needed
which airflow > /dev/null || python setup.py develop
2015-10-18 00:04:56 +03:00
echo "Initializing the DB"
airflow initdb
2015-10-18 00:04:56 +03:00
echo "Starting the unit tests"
2015-10-18 18:22:13 +03:00
nosetests \
--with-coverage \
--cover-erase \
--cover-html \
--cover-package=airflow \
--cover-html-dir=airflow/www/static/coverage \
-v \
2015-10-27 06:39:08 +03:00
--logging-level=DEBUG
2015-10-18 18:22:13 +03:00
#--with-doctest \
2015-06-05 20:41:36 +03:00
# To run individual tests:
# nosetests tests.core:CoreTest.test_scheduler_job