mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
* Migrating reports to AuthWebdriverProxy * Extracting out webdriver proxy / Adding thumbnail tests to CI * Adding license * Adding license again * Empty commit * Adding thumbnail tests to CI * Switching thumbnail test to Postgres * Linting * Adding mypy:ignore / removing thumbnail tests from CI * Putting ignore statement back * Updating docs * First cut at authprovider * First cut at authprovider mostly working - still needs more tests * Auth provider tests added * Linting * Linting again... * Linting again... * Busting CI cache * Reverting workflow change * Fixing dataclasses * Reverting back to master * linting? * Reverting installation.rst * Reverting package-lock.json * Addressing feedback * Blacking * Lazy logging strings * UPDATING.md note |
||
---|---|---|
.. | ||
README.md | ||
run.sh |
Utility script to run tests faster
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
Use:
To show all supported switches:
scripts/tests/run.sh --help
From the superset repo root directory:
- Example run all tests:
scripts/tests/run.sh
- Example run a single test module:
scripts/tests/run.sh --module tests/charts/api_tests.py
- Example run a single test:
scripts/tests/run.sh --module tests/charts/api_tests.py::TestChartApi::test_get_charts
- Example run a single test, without any init procedures. Init procedures include: resetting test database, db upgrade, superset init, loading example data. If your tests are idempotent, after the first run, subsequent runs are really fast
scripts/tests/run.sh --module tests/charts/api_tests.py::TestChartApi::test_get_charts --no-init
- Example for not recreating the test DB (will still run all the tests init procedures)
scripts/tests/run.sh --module tests/charts/api_tests.py::TestChartApi::test_get_charts --no-reset-db
- Example for not running tests just initialize the test DB (drop/create, upgrade and load examples)
scripts/tests/run.sh --no-tests
- Example for just resetting the tests DB
scripts/tests/run.sh --reset-db --no-tests