square / workflow-kotlin

A Swift and Kotlin library for making composable state machines, and UIs driven by those state machines.
https://square.github.io/workflow
Apache License 2.0
1.02k stars 101 forks source link

Deprecate one/disambiguate between launchForTestingFromStart/StateWith and headlessIntegrationTest #1152

Open steve-the-edwards opened 9 months ago

steve-the-edwards commented 9 months ago

One was for the original integration tests, the other was stood up with coroutines (via runTest and Turbine) to do pull based testing of multiple Workflows.

We should pick a path and support it.

Right now launchForTestingFromStart/StateWith... does not support specifying RuntimeConfig as a parameter - it must be done via a System Property and JvmRuntimeConfigTools (usually shuttled there via a gradle property - handy, but not clear).

steve-the-edwards commented 8 months ago

Renaming headlessIntegrationTest to something less focused makes sense as well.