Skip to main content
Version: 1.0

tecton test

Usage​

tecton test [Options] [PYTEST_EXTRA_ARGS]

Description​

Run Tecton tests.

Options​

CommandDescription
--enable-python-serialization / --disable-python-serializationIf 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 FILEPath 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​

ExampleDescription
tecton testRun 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.

Was this page helpful?

🧠 Hi! Ask me anything about Tecton!

Floating button icon