Skip to main content

cucumber_expressions 20.1.0 copy "cucumber_expressions: ^20.1.0" to clipboard
cucumber_expressions: ^20.1.0 copied to clipboard

Cucumber Expressions for Dart. A simpler alternative to Regular Expressions with a more intuitive syntax, plus parameter type matching and expression generation.

example/main.dart

import 'dart:io';

import 'package:cucumber_expressions/cucumber_expressions.dart';

void main() {
  final expression = ExpressionFactory(
    ParameterTypeRegistry(),
  ).createExpression('I have {int} cukes');

  final arguments = expression.match('I have 24 cukes');
  stdout.writeln('I have ${arguments?.first.getValue()} cukes.');
}
2
likes
160
points
103
downloads

Documentation

Documentation
API reference

Publisher

verified publishercucumber.io

Weekly Downloads

Cucumber Expressions for Dart. A simpler alternative to Regular Expressions with a more intuitive syntax, plus parameter type matching and expression generation.

Repository (GitHub)
View/report issues
Contributing

Topics

#cucumber #expressions #testing #parser

Funding

Consider supporting this project:

opencollective.com
github.com

License

MIT (license)

More

Packages that depend on cucumber_expressions