Skip to content

Workflow Unit Tests #340

Answered by rjrjr
srblackie asked this question in Q&A
Discussion options

You must be logged in to vote

If you're asking how to choose between Workflow.launchForTestingFromStartWith and Workflow.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.

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants