FLUTTER ECOSYSTEM

gherkin

A Gherkin parsers and runner for Dart which is very similar to Cucumber, it provides the base BDD functionality ready for use in platform specific implementations i.e. flutter/web

Latest version
3.1.0
30-day downloads
13.9K
Likes
40
Pub points
120

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Gherkin is a Dart package that provides Gherkin parser and test runner functionality, enabling Behavior-Driven Development (BDD) in Dart applications. Inspired by Cucumber, it allows writing tests in plain language using Gherkin syntax (Given/When/Then). The package supports platform-agnostic BDD testing, making it suitable for Flutter, web, and other Dart-based projects. It integrates seamlessly with existing test frameworks and offers extensibility for custom step definitions and hooks. Ideal for teams wanting to write human-readable, executable specifications.

Use cases
  • Writing BDD-style acceptance tests
  • Integrating Gherkin into Flutter apps
  • Testing web applications with readable scenarios
  • Collaborating with non-technical stakeholders
  • Automating end-to-end test flows
Key features
  • Gherkin syntax parsing
  • Step definition matching
  • Support for hooks and tags
  • Extensible test runner
  • Platform-agnostic design
Suitable for
  • Teams using BDD practices
  • Flutter developers needing acceptance tests
  • Test automation engineers
  • Cross-platform Dart applications
  • Projects requiring clear test documentation
Considerations
  • Requires additional setup for step definitions
  • Not a full testing framework on its own
  • Limited built-in reporting
  • Best used with complementary test runners
  • No native UI for test execution
Supported platformsNot available

Install package

flutter pub add gherkin

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects