Testing Workflows
#1298
-
Is there any recommended way of testing workflows? E.g. running a unit test or something locally before submitting to Flyte?
|
Beta Was this translation helpful? Give feedback.
Answered by
SandraGH5
Jul 30, 2021
Replies: 1 comment
-
You can run your python workflow locally before submitting it to Flyte, which is the recommended way.
For a unit test, you could use any tool that is available in the python ecosystem like pytest. Or mock tasks and write unit tests like regular python functions. @evalsocket |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SandraGH5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can run your python workflow locally before submitting it to Flyte, which is the recommended way.
For a unit test, you could use any tool that is available in the python ecosystem like pytest. Or mock tasks and write unit tests like regular python functions.
Reference: https://docs.flyte.org/projects/flytekit/en/latest/generated/flytekit.testing.task_mock.html#flytekit-testing-task-mock
@evalsocket
@kumare3