dherkin 0.5.0 copy "dherkin: ^0.5.0" to clipboard
dherkin: ^0.5.0 copied to clipboard

outdatedDart 1 only

Gherkin/Cucumber implementation in dart

dherkin #

Gherkin parser and runner for dart. for Behavior Driven Development (BDD).

Usage #

Dherkin can be executed in a number of ways.

cucumberd #

Library comes with an executable runner script cucumberd in bin/ directory. Create symbolic link in a directory on your path, like /usr/local/bin:

cd /usr/local/bin
ln -s path/to/dherkin/bin/cucumberd .

Execute:

cucumberd examples/test_feature.feature

Note: cucumberd will auto-include all step definitions in steps/ sub-directory. Ability to add steps source locations via command-line arguments is planned.

Custom Runner #

Alternatively, you might opt for writing your own script:

library my_bdd_runner;

import 'package:dherkin/dherkin.dart';
import 'my_step_defs.dart'; // import stepdefs, mandatory since no auto-scanning happens

main(args) {
  run(args);
}

// write your StepDefs below

Invoke the runner : $ dart my_bdd_runner.dart my_gherkin.feature

0
likes
0
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

Gherkin/Cucumber implementation in dart

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor, args, log4dart, worker

More

Packages that depend on dherkin