mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
Allow setting nosetests options via environment variable
By setting TEST_ARGS environment variable with -e option of docker-compose we can set nosetests options to run the tests as we want, like so; `docker-compose run --rm -e TEST_ARGS="--with-coverage tests/handlers/test_dashboards.py" server tests`
This commit is contained in:
3
Makefile
3
Makefile
@@ -4,6 +4,7 @@ FULL_VERSION=$(VERSION)+b$(CIRCLE_BUILD_NUM)
|
|||||||
BASE_VERSION=$(shell python ./manage.py version | cut -d + -f 1)
|
BASE_VERSION=$(shell python ./manage.py version | cut -d + -f 1)
|
||||||
# VERSION gets evaluated every time it's referenced, therefore we need to use VERSION here instead of FULL_VERSION.
|
# VERSION gets evaluated every time it's referenced, therefore we need to use VERSION here instead of FULL_VERSION.
|
||||||
FILENAME=$(CIRCLE_ARTIFACTS)/$(NAME).$(VERSION).tar.gz
|
FILENAME=$(CIRCLE_ARTIFACTS)/$(NAME).$(VERSION).tar.gz
|
||||||
|
TEST_ARGS?=--with-coverage --cover-package=redash tests/
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
if [ -d "./client/app" ]; then npm install; fi
|
if [ -d "./client/app" ]; then npm install; fi
|
||||||
@@ -17,4 +18,4 @@ upload:
|
|||||||
python bin/release_manager.py $(CIRCLE_SHA1) $(BASE_VERSION) $(FILENAME)
|
python bin/release_manager.py $(CIRCLE_SHA1) $(BASE_VERSION) $(FILENAME)
|
||||||
|
|
||||||
test:
|
test:
|
||||||
nosetests --with-coverage --cover-package=redash tests/
|
nosetests $(TEST_ARGS)
|
||||||
|
|||||||
Reference in New Issue
Block a user