-
What's the preferred way to write Workflow Unit Tests? |
Beta Was this translation helpful? Give feedback.
Answered by
rjrjr
Feb 24, 2021
Replies: 1 comment
-
If you're asking how to choose between
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zach-klippenstein
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're asking how to choose between
Workflow.launchForTestingFromStartWith
andWorkflow.testRender
, the latter allows for more focused tests, and is probably the best choice for unit tests. (We gave it the more concise name as an under-documented hint in that direction.) It allows you to test a single rendering at a time.launchForTestingFromStartWith
is better suited for integration tests, e.g. to test an entire workflow tree. It can be a decent alternative to an espresso test.