By default tests will be run using the Postgres container defined at the docker-compose
file on the root of the repo, so prior to using this script make sure to launch the dev containers.
You can use a different DB backend by defining SUPERSET__SQLALCHEMY_DATABASE_URI
env var.
This script will not install any dependencies for you, so you must be on an already set virtualenv
To show all supported switches:
scripts/tests/run.sh --help
From the superset repo root directory:
scripts/tests/run.sh
scripts/tests/run.sh --module tests/charts/api_tests.py
scripts/tests/run.sh --module tests/charts/api_tests.py::TestChartApi::test_get_charts
scripts/tests/run.sh --module tests/charts/api_tests.py::TestChartApi::test_get_charts --no-init
scripts/tests/run.sh --module tests/charts/api_tests.py::TestChartApi::test_get_charts --no-reset-db
scripts/tests/run.sh --no-tests
scripts/tests/run.sh --reset-db --no-tests