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

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
120
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
Contributing

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com

License

BSD-2-Clause (LICENSE)

Dependencies

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

More

Packages that depend on eventstore_client_test