The testkit package provides helpers for actor-level testing. See TestKit for full documentation.
TestKit β Creates a throwaway actor system. Provides Spawn, SpawnChild, Kill, Subscribe, NewProbe, NewGrainProbe, GrainIdentity.
Probe β Test actor that records messages. Assertions: ExpectMessage, ExpectMessageOfType, ExpectNoMessage, ExpectTerminated; Send, SendSync; Watch, WatchNamed.
GrainProbe β Similar for grain testing.
MultiNodes β Multi-node cluster in-process for integration tests.
Use probes instead of sleeps or polling for message assertions.
Generated by mockery. Pre-built mocks in mocks/ cover Remoting, Cluster, Extension, Dependency, Provider. Use them to
isolate components in unit tests.