eventstore_client_test 0.6.0 copy "eventstore_client_test: ^0.6.0" to clipboard
eventstore_client_test: ^0.6.0 copied to clipboard

outdated

A testing library for applications using EventStore Client with a local EventStoreDB instance.

example/example.dart

import 'package:eventstore_client/eventstore_client.dart';
import 'package:eventstore_client_test/eventstore_client_test.dart';
import 'package:test/test.dart';

void main() {
  // Reusable test resources
  late EventStoreStreamsClient client;
  late EventStoreServerSingleNode server;

  setUpAll(() {
    server = EventStoreServerSingleNode(EventStoreImage.LTS);
    client = EventStoreStreamsClient(
      EventStoreClientSettings.parse('esdb://127.0.0.1:2113'),
    );
    return server.start();
  });

  tearDownAll(() async {
    await client.shutdown();
    await server.stop();
  });

  test('test client', () {
    // TODO: Add test using client
  });
}
0
likes
0
points
160
downloads

Publisher

verified publisherdiscoos.org

Weekly Downloads

A testing library for applications using EventStore Client with a local EventStoreDB instance.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, eventstore_client, file, logging, path, shell, universal_io

More

Packages that depend on eventstore_client_test