zio.temporal.testkit
Members list
Type members
Classlikes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ZReplayResults.type
Contains workflow reply results
Contains workflow reply results
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Represents ZTestEnvironment options.
Represents ZTestEnvironment options.
Attributes
- See also
-
TestEnvironmentOptions
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
TestWorkflowEnvironment provides workflow unit testing capabilities.
TestWorkflowEnvironment provides workflow unit testing capabilities.
Testing the workflow code is hard as it might be potentially very long running. The included in-memory implementation of the Temporal service supports an automatic time skipping. Anytime a workflow under the test as well as the unit test code are waiting on a timer (or sleep) the internal service time is automatically advanced to the nearest time that unblocks one of the waiting threads. This way a workflow that runs in production for months is unit tested in milliseconds. Here is an example of a test that executes in a few milliseconds instead of over two hours that are needed for the workflow to complete:
Attributes
- See also
-
TestWorkflowEnvironment
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Expose methods to read and deserialize workflow execution history from json.
Expose methods to read and deserialize workflow execution history from json.
NOTE from Java SDK: 2021-11-29 Experimental because the user facing interface to history replay functionality is actively evolving.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Replays a workflow given its history. Useful for backwards compatibility testing.
Replays a workflow given its history. Useful for backwards compatibility testing.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ZWorkflowReplayer.type