flutter_gherkin

A Gherkin parsers and runner for Dart and Flutter which is very similar to cucumber

MIT License

Stars
205
Committers
15

Bot releases are visible (Hide)

flutter_gherkin - 3.0.0-rc.17 Latest Release

Published by jonsamwell about 2 years ago

[3.0.0-rc.17] - 25/07/2022

  • Fix #257 - fixed issue when generating a step with a '$' sign in
  • Fix #256 - Ensure all exceptions generated when running a step are logged
  • Fix #253 - Ensure features with descriptions that span more than one line are parsed correctly
  • Fix #252 - Ensure all async code is awaited
  • When taking a screenshot on the web use the render element rather than relying on native code that does not work
flutter_gherkin - 3.0.0-rc.16

Published by jonsamwell over 2 years ago

[3.0.0-rc.16] - 01/07/2022

  • Fix #231 - using local coordinate system when taking a screenshot on Android (thanks to @youssef-t for the solution)
  • Fix #216 - ensure step exceptions and expect failure results are added as errors to the json report
  • Scenarios can now have descriptions which also appear in the json reporter output

NOTE: Due to the above changes generated files will need to be re-generated

flutter pub run build_runner clean
flutter pub run build_runner build --delete-conflicting-outputs
flutter_gherkin - 3.0.0-rc.15

Published by jonsamwell over 2 years ago

[3.0.0-rc.15] - 28/06/2022

  • Exposed frameBindingPolicy on the test runner when running tests which can affect how frames are painted and the speed of the test run, I've removed the default value which might be responsible for #231
flutter_gherkin - 3.0.0-rc.14

Published by jonsamwell over 2 years ago

[3.0.0-rc.14] - 28/06/2022

  • Fix #237 - Ensure everything works on the web
flutter_gherkin - 3.0.0-rc.13

Published by jonsamwell over 2 years ago

[3.0.0-rc.13] - 27/06/2022

  • Fix #235 - fix issue taking a screenshot on an Android device
  • Resolved #170: Added example code to ensure json report is save to disk even when the test run fails. Also added script to generate a HTML report from a JSON report
flutter_gherkin - 3.0.0-rc.10

Published by AFASbart over 2 years ago

A lot of new changes in this update.

  • Test scenario's can be retried, in the configuration it is possible to specify the amount of step retries. (#218).
  • It is now possible to the see if the scenario has passed in the JSON report and in the afterScenario hook (#201).
  • When a test fails, it does not automatically fail in the test framework. The other steps will be skipped and show up in the JSON report. This will now not cause any app inconsistencies with error pop-ups (#182).
  • Steps that have been skipped, are now also being recorded through the reporters and hooks (#179).
  • Documentation on the feature folder location has been improved (#174).
flutter_gherkin - 3.0.0-rc.12

Published by jonsamwell over 2 years ago

[3.0.0-rc.12] - 24/06/2022

  • Fix #222 - escape single quotation marks in data tables
flutter_gherkin - 3.0.0-rc.11

Published by jonsamwell over 2 years ago

[3.0.0-rc.11] - 24/06/2022

  • Fix #231 - Removed the use of explicitly calling pumpAndSettle in the pre-defined steps in favour of the implicit pumpAndSettle calls used in the WidgetTesterAppDriverAdapter.
  • Added ability to add a appLifecyclePumpHandler to override the default handler that determines how the app is pumped during lifecycle events. Useful if your app has a long splash screen etc. Parameter is on executeTestSuite.
  • Added ability to ensure feature paths are relative when generating reports useAbsolutePaths on the GherkinTestSuite attribute
  • BREAKING CHANGE: The parameters on executeTestSuite are now keyed to allow for the above changes
flutter_gherkin - 3.0.0-rc.9

Published by jonsamwell almost 3 years ago

  • Fix: #172: Fix for the StdoutReporter when running against the web
flutter_gherkin - 3.0.0-rc.6

Published by jonsamwell almost 3 years ago

[3.0.0-rc.6] - 27/10/2021

  • BREAKING CHANGE: Made appMainFunction return a Future<void> so it can be async
  • Fix: #159: Swipe step not working
  • Ensure Hook.onBeforeRun is called before the run starts
  • Set Frame policy- defaults to LiveTestWidgetsFlutterBindingFramePolicy.benchmarkLive to slightly improve performance
flutter_gherkin - 3.0.0-rc.5

Published by jonsamwell about 3 years ago

[3.0.0-rc.5] - 22/06/2021

  • Ensure scenario support files (world etc) as always disposed ensure when test throws error
flutter_gherkin - 3.0.0-rc.4

Published by jonsamwell about 3 years ago

[3.0.0-rc.4] - 21/06/2021

  • Removed debug code
flutter_gherkin - 3.0.0-rc.3

Published by jonsamwell about 3 years ago

[3.0.0-rc.3] - 21/06/2021

  • POSSIBLE BREAKING CHANGE: Removed tap call before enterText is invoked in WidgetTesterAppDriverAdapter this was due to the fact that it opens the on-screen keyboard which is not closed after the text is entered so it could be blocking further controls from view.
  • Fix: #150: Better handling of JSON strings in multiline string segments in feature files
  • Fix: #141 & #128: Added example of how to generate html report from json report output and fixed all scenarios ending up in the last feature section of the json report
flutter_gherkin - 3.0.0-rc.2

Published by jonsamwell over 3 years ago

[3.0.0-rc.2] - 21/06/2021

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

Published by jonsamwell over 3 years ago

[2.0.0] - 25/05/2021

  • null-safety migration, thanks to @tshedor
flutter_gherkin - 1.2.0

Published by jonsamwell over 3 years ago

[1.2.0] - 03/05/2021

  • Upgraded to the null-safety version of dart_gherkin, as such there are some breaking changes to be aware of (see https://github.com/jonsamwell/dart_gherkin/blob/master/CHANGELOG.md for the full list):

    • BREAKING CHANGE: Table has been renamed to GherkinTable to avoid naming clashes
    • BREAKING CHANGE: exitAfterTestRun configuration option has been removed as it depends on importing dart:io which is not available under certain environments (dartjs for example).
    • 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 for your patterns to not work anymore due as the default IoFeatureFileAccessor assumes the current directory is the working directory to search from. For the most part this simple regex is probably enough to get you going.
    RegExp('features/*.*.feature')
    
  • Allow dart-define to be passed to the Flutter build (thanks @Pholey)

flutter_gherkin - 1.1.9

Published by jonsamwell almost 4 years ago

[1.1.9] - 24/11/2020

  • Fixes #93 & #92 - Error waiting for no transient callbacks from Flutter driver
  • Added option to leave Flutter app under test running when the tests finish see keepAppRunningAfterTests configuration property
  • Added the ability to have multiple example blocks with tags per scenario outline
flutter_gherkin - 1.1.8+9

Published by jonsamwell about 4 years ago

[1.1.8+9] - 20/09/2020

  • Fixes #84 - pre-defined present within N seconds is limited by system timeout (thanks @doubleo2)
  • Added build mode to enable profile build and performance profiling (thanks @lsuhov)
  • Updated to latest dart_gherkin library which fixes access to the default step timeout see #81
flutter_gherkin - 1.1.8+8

Published by jonsamwell about 4 years ago

[1.1.8+8] - 11/08/2020

  • Added well know steps and a driver helper method to long press a widget (fixed issue and documentation)
When I long press "controlKey" button

When I long press "controlKey" icon for 1500 milliseconds
flutter_gherkin - 1.1.8+7

Published by jonsamwell about 4 years ago

[1.1.8+7] - 11/08/2020

  • Added well know steps and a driver helper method to long press a widget
When I long press "controlKey" button

When I long press "controlKey" icon for 1500 milliseconds
Package Rankings
Top 3.54% on Pub.dev
Top 9.55% on Proxy.golang.org
Related Projects