pickled_cucumber
1.7.0, released 3 months ago by mobile-tools.dev
A simple Cucumber BDD implementation for Dart, Dart Frog, and Flutter projects.
What it does
Allows developers to run Cucumber Gherkin feature files and step definitions in Dart, Dart Frog, and Flutter. It supports standard unit tests, widget tests, and integration tests, with optional code generation for Flutter.
AI-written summary of version 1.7.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to write BDD tests using Gherkin feature files in Flutter or Dart.
- You need to run Cucumber scenarios as widget tests or integration tests.
Skip it when
- You require a full and comprehensive implementation of the entire Cucumber standard specification.
- You prefer writing purely programmatic tests without feature files.
Strengths
- Supports Dart, Dart Frog, and Flutter (including widget and integration tests).
- Supports Background steps for shared scenario setup.
Weaknesses
- Does not aim to be a full Cucumber implementation; only supports common features.
- Requires build_runner and code generation setup for Flutter usage.
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 8
Requires adding the package, writing feature files and step definitions, and optionally configuring build_runner for Flutter code generation.
import 'package:pickled_cucumber/pickled_cucumber.dart';
import 'package:counter/features/step_definitions/counter_steps.dart';
void main() {
final stepDefsDartFile = CounterStepDefs();
PickledCucumber.runFeatures(
"features/counter.feature",
stepDefsDartFile,
);
}Alternatives
Packages that do the same job and could replace pickled_cucumber.
- cucumber_gherkin
Parses Gherkin .feature files into Cucumber Messages envelopes
81Compare - bdd_framework
Create BDD tests in Dart code with readable error messages and Gherkin feature file export.
77Compare - flutter_gherkin
Gherkin parser and test runner for Dart and Flutter behavior-driven development.
50Compare - gherkin
A Gherkin parser and test runner for BDD testing in Dart and Flutter.
49Compare
Works with
Packages commonly used together with pickled_cucumber: ones it builds on, ones built on it, and its own family.
- analyzerpickled_cucumber depends on itPerforms static analysis of Dart code for tool integration and embedding.
- pub_semverpickled_cucumber depends on itVersions and version constraints implementing pub's versioning policy.
- dart_stylepickled_cucumber depends on itProvides an API and CLI to format Dart source code automatically.
- testpickled_cucumber depends on itA full featured library for writing and running Dart tests across platforms.
- filepickled_cucumber depends on itPluggable, mockable file system abstraction for Dart with in-memory support.
- code_builderpickled_cucumber depends on itA fluent, builder-based library for generating valid Dart code programmatically.
- buildpickled_cucumber depends on itPackage for authoring build_runner compatible code generators.
- source_genpickled_cucumber depends on itSource code generation builders and utilities for the Dart build system.