Join Slack
Powered by
Hi Team I want to write a test cases(unit test, in...
# flyte-support
a
acoustic-parrot-22802
11/28/2024, 6:16 PM
Hi Team I want to write a test cases(unit test, integration and e2e) for my flyte workflows is there any rules to follow to write test cases for flyte workflows any documentaion will helpful
f
freezing-airport-6809
11/29/2024, 1:28 AM
you should be able to use all tasks as regular python functions and for workflows it might be useful to mock
https://docs.flyte.org/en/latest/api/flytekit/testing.html#module-flytekit.testing
d
damp-lion-88352
11/29/2024, 2:37 AM
I think integration test is a good example
damp-lion-88352
11/29/2024, 2:37 AM
https://github.com/flyteorg/flytekit/blob/master/Makefile#L96-L98
damp-lion-88352
11/29/2024, 2:37 AM
you can study how CI start a flyte sandbox then run those!
13
Views
Open in Slack
Previous
Next