dactor_test 1.0.0 copy "dactor_test: ^1.0.0" to clipboard
dactor_test: ^1.0.0 copied to clipboard

Test utilities for the Dactor actor system - TestActorSystem and TestProbe

dactor_test #

Test utilities for the Dactor actor system.

Features #

  • TestActorSystem — A controlled actor system for deterministic testing with message tracing
  • TestProbe — Probe actor for message expectation, verification, and timeout-based assertions

Usage #

import 'package:dactor_test/dactor_test.dart';

final system = TestActorSystem(ActorSystemConfig());
final probe = await system.createTestProbe('test-probe');

// Send a message and verify receipt
actorRef.tell('hello');
final msg = await probe.expectMessage(timeout: Duration(seconds: 2));
expect(msg, equals('hello'));

await system.shutdown();

License #

MIT

0
likes
140
points
31
downloads

Documentation

API reference

Publisher

verified publisherwerkswinkel.com

Weekly Downloads

Test utilities for the Dactor actor system - TestActorSystem and TestProbe

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dactor, test

More

Packages that depend on dactor_test