Skip to main content

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

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

example/main.dart

import 'dart:io';

import 'package:cucumber_messages/cucumber_messages.dart';

Future<void> main() async {
  const 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)) {
    stdout.writeln(decoded.attachment?.body);
  }
}
5
likes
160
points
10.4k
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