Replies: 1 comment
-
Kind of dumb, but I figured out why it behaves this way. Junit5 Docs DynamicTest instances will be executed lazily) states that:
So inside the Even though the Dynamic tests is still usable, but you have to make sure all activity usage is retained or occurs before the test factory exits, and the test executor functions cannot make use of the activity since they will fire after the junit test runner closes the activities. So this can be a bit limiting on how it can be used. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I see no mention of support for junit5 dynamic tests, so I assume it's not officially supported but I'm wondering if anyone got dynamic tests working in an instrumented test set using an activity.
I'm finding that once the
@TestFactory
returns, the test lifecycle seems to tears down and destroys the activity before theDynamicTest
executors even run.Beta Was this translation helpful? Give feedback.
All reactions