cucumber_gherkin
43.0.0, released 8 days ago by cucumber.io
Parses Gherkin .feature files into Cucumber Messages envelopes
What it does
This package reads Gherkin feature files and converts them into Cucumber Messages envelopes. It is a pure Dart implementation that works on all platforms supported by Dart.
AI-written summary of version 43.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Parsing Gherkin feature files for BDD tests
- Generating Cucumber Messages for test runners
- Integrating with other Cucumber tooling
Skip it when
- Building UI components
- Handling network or storage tasks
Strengths
- Pure Dart, no native dependencies
- Cross‑platform support (android, ios, web, windows, macos, linux)
- Fast parsing of feature files
Weaknesses
- No code generation or test runner integration built in
- Limited to parsing, not executing tests
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:cucumber_gherkin/cucumber_gherkin.dart';
final parser = GherkinParser();
final envelope = parser.parse('Feature: Sample\n Scenario: Test');
print(envelope);Alternatives
Packages that do the same job and could replace cucumber_gherkin.
- pickled_cucumber
A simple Cucumber BDD implementation for Dart, Dart Frog, and Flutter projects.
62Compare - flutter_gherkin
Gherkin parser and test runner for Dart and Flutter behavior-driven development.
50Compare - autopilot
A test driver for Flutter that exposes a JSON HTTP API for QA testing.
66Compare - gherkin
A Gherkin parser and test runner for BDD testing in Dart and Flutter.
49Compare
Works with
Packages commonly used together with cucumber_gherkin: ones it builds on, ones built on it, and its own family.
- cucumber_messagescucumber_gherkin depends on itDart types and helpers for Cucumber message protocol (NDJSON).
- bdd_widget_testBuilt on cucumber_gherkinGenerate Flutter widget tests from Gherkin feature files
- bdd_frameworkBuilt on cucumber_gherkinCreate BDD tests in Dart code with readable error messages and Gherkin feature file export.