Skip to content
pubscout

cucumber_gherkin

43.0.0, released 8 days ago by cucumber.io

Parses Gherkin .feature files into Cucumber Messages envelopes

WASM-ready
$ flutter pub add cucumber_gherkin
Source repository

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.

  • flutter_gherkin

    Gherkin parser and test runner for Dart and Flutter behavior-driven development.

  • autopilot

    A test driver for Flutter that exposes a JSON HTTP API for QA testing.

  • gherkin

    A Gherkin parser and test runner for BDD testing in Dart and Flutter.

Works with

Packages commonly used together with cucumber_gherkin: ones it builds on, ones built on it, and its own family.