tecton test
Usage​
tecton test [Options] [PYTEST_EXTRA_ARGS]
Description​
Run Tecton tests.
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 |
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. |