dart_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

MIT License

Stars
43

Bot releases are visible (Hide)

dart_gherkin - 3.1.0 Latest Release

Published by jonsamwell over 2 years ago

[3.1.0] - 01/07/2022

  • Fix #40 scenarios can now contain descriptions
  • Json reporter: ensure exceptions, statuses and scenario descriptions are reported correctly
  • Changed reporter maybeCall to invoke
dart_gherkin - 3.0.0+1

Published by jonsamwell over 2 years ago

[3.0.0+1] - 16/05/2022

  • Update configuration object constructor to take in additional configuration parameters
  • The prepare method on the configuration object now returns a configuration object to allow for configuration to always be immutable
dart_gherkin - 2.0.8

Published by jonsamwell almost 3 years ago

  • Fixed issue checking ANSI support on web environments in the StdoutReporter
dart_gherkin - 2.0.7

Published by jonsamwell almost 3 years ago

[2.0.7] - 11/10/2021

  • Updated feature file visitor to provide parent feature information to child scenario
dart_gherkin - 2.0.6

Published by jonsamwell almost 3 years ago

[2.0.6] - 11/10/2021

  • Ensure stdout reporter only print ANSI colours when the stdout supports it
dart_gherkin - 2.0.5+1

Published by jonsamwell about 3 years ago

[2.0.5+1] - 15/09/2021

  • Fixed first/last flag on FeatureFileVisitor
  • Fixed find feature files regex pattern fdr windows in example project
dart_gherkin - 2.0.5

Published by jonsamwell about 3 years ago

[2.0.5] - 15/09/2021

  • Added json reporter test case for multi-scenario
  • Added first/last flag on FeatureFileVisitor
dart_gherkin - 2.0.4

Published by jonsamwell over 3 years ago

  • Fixed late initialization error when invoking hooks
  • Updated float parameter parser so an exception is not thrown during parsing
dart_gherkin - 2.0.2

Published by jonsamwell over 3 years ago

[2.0.2] - 25/05/2021

  • Fix #45 executing feature files outside of the current working directory
dart_gherkin - 2.0.1

Published by jonsamwell over 3 years ago

  • BREAKING CHANGE: TestFailure is no longer thrown when an expect fails. Instead, use GherkinTestFailure when catching errors (i.e. replace on TestFailure catch with on GherkinTestFailure catch) (#37).
dart_gherkin -

Published by jonsamwell over 3 years ago

[2.0.0] - 15/02/2021

NOTE: Massive changes here due to the migration to null-safety and laying the foundation for code generation to enable testing Flutter apps using the integration_test package.

BREAKING CHANGE: Migration to null-safety, some parameter have become nullable which may lead to subtle unexpected results. Please file any issue you come across.
BREAKING CHANGE: Table has been renamed to GherkinTable to avoid naming clashes
BREAKING CHANGE: Null-safety updated all libs to their stable null-safety releases
BREAKING CHANGE: exitAfterTestRun configuration option has been removed as it need to import dart:io which is not available under certain environments (dartjs for example).
BREAKING CHANGE: exitAfterTestFailed configuration option renamed to stopAfterTestFailed
BREAKING CHANGE: Reporter->onException() exception parameter is now an object rather than an exception
POSSIBLE BREAKING CHANGE: Feature file discovery has been refactored to abstract it from the external Glob dependency. It now support the three native dart Patterns (String, RegExp & Glob). There is potential here your patterns may not work anymore due as the default IoFeatureFileAccessor assumes the current directory is the working directory to search from. Thanks to @marcin-jelenski for the PR
Execution order can now be sorted alphabetically to ensure a consistent order thanks to @bartonhammond
Fixed #22 Tags are not taking into account after an Example block
Fixed #23: Multiline strings to support YAML format thanks to @tshedor for the PR!
Fixed #29: French keyword "Lorsqu'il" makes parser crash

dart_gherkin - 1.1.9

Published by jonsamwell almost 4 years ago

[1.1.9] - 24/11/2020

  • Added the ability to have multiple example blocks with tags per scenario outline
dart_gherkin - 1.1.8+5

Published by jonsamwell almost 4 years ago

[1.1.8+5] - 26/10/2020

  • Ensured world is disposed after last hooks are run
dart_gherkin - 1.1.8+4

Published by jonsamwell about 4 years ago

[1.1.8+4] - 20/09/2020

dart_gherkin - 1.1.8+3

Published by jonsamwell about 4 years ago

[1.1.8+3] - 05/08/2020

dart_gherkin - 1.1.8+2

Published by jonsamwell over 4 years ago

[1.1.8+2] - 17/07/2020

  • Added shorthand steps given(), when1(), then2() etc to reduce boilerplate code and the need to create a class for every step. Heavily inspired from the excellent ideas in https://github.com/technogise/flutter_gherkin_addons
  • Added a default static method to the TestConfiguration class to again reduce common boilerplate configuration
dart_gherkin - 1.1.8+1

Published by jonsamwell over 4 years ago

[1.1.8+1] - 11/05/2020

  • Fixed issue with JsonReporter that would throw an error if an exception was logged before any scenarios have run
dart_gherkin - V1.1.8

Published by jonsamwell over 4 years ago

[1.1.8] - 10/05/2020
Fixed issue with JsonReporter that would throw an error if an exception was logged before any features have run

dart_gherkin - v1.1.6+4

Published by jonsamwell over 4 years ago

  • Fixed issue with empty cells in scenario table parameters
  • Fixed issue with a leading comment in feature files
dart_gherkin - v1.1.7

Published by jonsamwell over 4 years ago

Now passing scenario tags into scenario level hooks to allow for custom actions - this is a breaking changed to the Hook interface and hook implementations will need to be updated to cope with the extra parameter