eventstore_client_test 0.2.1 copy "eventstore_client_test: ^0.2.1" to clipboard
eventstore_client_test: ^0.2.1 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();
    client = EventStoreStreamsClient(
      EventStoreClientSettings.parse('<your value>'),
    );
    return server.start();
  });

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

  test('test client', () {
    // TODO: Add test using client
  });
}
0
likes
0
pub points
0%
popularity

Publisher

verified publisherdiscoos.org

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