forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
69 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
export AIRFLOW_HOME=${AIRFLOW_HOME:=~/airflow} | ||
export AIRFLOW_CONFIG=$AIRFLOW_HOME/unittests.cfg | ||
nosetests --with-doctest --with-coverage --cover-erase --cover-html --cover-package=airflow -v --cover-html-dir=airflow/www/static/coverage --logging-level=DEBUG | ||
|
||
# Generate the `airflow` executable if needed | ||
which airflow > /dev/null || python setup.py develop | ||
|
||
# initialize the test db | ||
AIRFLOW_DB=$AIRFLOW_HOME/unittests.db | ||
ls -s $AIRFLOW_DB > /dev/null 2>&1 || airflow initdb # if it's missing | ||
ls -s $AIRFLOW_DB | egrep '^0 ' > /dev/null && airflow initdb # if it's blank | ||
|
||
nosetests --with-doctest \ | ||
--with-coverage \ | ||
--cover-erase \ | ||
--cover-html \ | ||
--cover-package=airflow \ | ||
--cover-html-dir=airflow/www/static/coverage \ | ||
-v \ | ||
--logging-level=DEBUG | ||
# To run individual tests: | ||
# nosetests tests.core:CoreTest.test_scheduler_job |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters