tecton test
Usage​
tecton test [Options] [PYTEST_EXTRA_ARGS]
Description​
Run Tecton tests.
Tests that exist in paths matching those specified in .tectonignore will be
skipped during test execution.
Options​
| Command | Description |
|---|---|
--enable-python-serialization / --disable-python-serialization | If disabled, Tecton will not serialize python code during unit tests. This can be useful in some test environments or when running code coverage tools, however the tests may be less realistic since serialization issues will not be covered. This option is not supported when running tests during tecton apply. If using pytest directly, set TECTON_FORCE_FUNCTION_SERIALIZATION=false in your environment to achieve the same behavior. [default: enable-python-serialization] |
--config FILE | Path to the repo config yaml file. Defaults to the repo.yaml file at the Tecton repo root. |
--default-compute-mode [rift|spark] | What compute mode to use to test features if not specified. Default value: spark |
--suppress-warnings | Suppress Python and pytest warnings during test execution. Can also be controlled with TECTON_SUPPRESS_TEST_WARNINGS=1 environment variable. |
Examples​
| Example | Description |
|---|---|
tecton test | Run all tests using PyTest in a file that matches glob("TECTON_REPO_ROOT/**/tests/**/*.py") |
tecton test -- -k "test_name" | Same as above, but passes the -k "test_name" args to the PyTest command. |