cucumber_messages 34.2.1 copy "cucumber_messages: ^34.2.1" to clipboard
cucumber_messages: ^34.2.1 copied to clipboard

JSON schema-based messages for Cucumber inter-process communication.

example/main.dart

import 'package:cucumber_messages/cucumber_messages.dart';

Future<void> main() async {
  final envelope = Envelope(
    attachment: Attachment(
      body: 'Hello, world!',
      contentEncoding: AttachmentContentEncoding.identity,
      mediaType: 'text/plain',
    ),
  );

  final lines = encodeNdjsonEnvelopes(Stream.value(envelope));

  await for (final decoded in decodeNdjsonEnvelopes(lines)) {
    print(decoded.attachment?.body);
  }
}
2
likes
160
points
1.26k
downloads

Documentation

Documentation
API reference

Publisher

verified publishercucumber.io

Weekly Downloads

JSON schema-based messages for Cucumber inter-process communication.

Repository (GitHub)
View/report issues
Contributing

Topics

#cucumber #testing #json #ndjson

Funding

Consider supporting this project:

opencollective.com
github.com

License

MIT (license)

More

Packages that depend on cucumber_messages