Commit Graph

108 Commits

Author SHA1 Message Date
Jon eff82509c7 - 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
2022-07-25 17:08:05 +10:00
Jon 7ee9f801d1 - 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
2022-07-01 13:25:36 +10:00
Jon b73da409b3 fix(#231): 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 2022-06-29 11:49:08 +10:00
Jon 66919d6539 fix(#237): remove reference to dart:html and gaurd stdout function so library works on web 2022-06-28 09:04:01 +10:00
Jon 9667db0df6 - 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
2022-06-27 12:39:31 +10:00
Jon 6736af335e fix(#222): escape single quotation marks in data tables 2022-06-24 14:14:11 +10:00
Jon 1f63ecc858 - 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
2022-06-24 12:26:45 +10:00
Jon 70f1c6c5a6 chore(docs): made changelog match pubspec version number 2022-06-23 13:42:05 +10:00
Jon 551a4fc34c chore(lints): fixed linting and improved code quality
fix(reporters): fixed summary reporter being called after each feature
2022-06-20 11:46:48 +10:00
Jon 0961916daa feat(config): re-worked configuration so it can stay mostly immutable
- Fix #195: Adding missing export for `wait_until_key_exists_step.dart`
- Fix #226: Allow compatibility with dev and master flutter branches
- Feat #218: Allow retry steps in case of intermittent failure by setting the configuration properties `stepMaxRetries` & `retryDelay`
- Fix #210 & #191: Ability to take screenshots on web
- Fix #198: Allow the use of implicit pumpAndSettle methods in the app driver to be turned off using the configuration property `waitImplicitlyAfterAction`
2022-06-17 16:25:39 +10:00
Vladislav Voronin f8b41b601b
Fix CHANGELOG filename 2022-03-31 14:33:34 +03:00
Jon Samwell c7281d692a chore(libs): updated to latest dart_gherkin release 2021-11-24 07:17:17 +11:00
Jon Samwell c5d9197241 fix(generation): fix when generating empty feature files 2021-11-18 15:17:57 +11:00
Jon Samwell 29eeb73f39 - Fix: #165: Empty .feature files causing void functions which get compiled out at runtime and cause errors
- Fix: #162: Incorrect feature name in HTML reports - many thanks to @AFASbart for suggesting the cause and fix.
- Fix: #159: Swipe step is not working due to bad '??' statement
- Fix: #155: Ensure stdout reporter only add ascii colour code when the target supports it
2021-11-10 11:14:17 +11:00
Jon Samwell 2db755d23b - 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
2021-10-27 20:13:49 +11:00
Jon Samwell 3c0e1c6270 fix(runner): Ensure scenario support files (world etc) as always disposed ensure when test throws error 2021-09-16 11:37:16 +10:00
Jon Samwell ed88094462 chore(debug): removed debug code 2021-09-15 15:14:22 +10:00
Jon Samwell 0f99f0f343 fix(#150 #141 #128): fixed handling of json in multiline string and improved and added example of generating html report 2021-09-15 14:32:48 +10:00
Jon Samwell a9e8607f98 chore(libs): updated to latest dart_gherkin 2021-06-21 08:49:26 +10:00
Jon Samwell 6d54ef7799 chore(rename): renamed rawDriver -> nativeDriver 2021-05-25 17:13:33 +10:00
Jon Samwell a2dd3213b0 chore(null-safety): more fixes
fix(adapters): fixed an issue with the pumpAndSettle method
2021-05-25 16:59:51 +10:00
Jon Samwell a90f9fb223 feat(null-satefy): more lib version tweaks 2021-05-01 15:02:44 +10:00
Jon Samwell 31bf38cef1 feat(null-safety): first pass of null safety 2021-05-01 13:56:17 +10:00
Jon Samwell ef04fa3386 fix(integration_test): ensure tearDownAll is always run 2021-01-21 15:41:24 +11:00
Jon Samwell 2727535321 feat(drivers): added typed driver flutter world 2021-01-14 08:07:18 +11:00
Vladislav fcd7c8f515 feature folder fix in changelog 2021-01-13 11:02:42 +03:00
Vladislav 954f8daede fixes for changelog 2021-01-12 16:23:18 +03:00
Jon Samwell f8eb155b99 fix(reports): fixed default report path 2021-01-11 16:30:47 +11:00
Jon Samwell c4cd66ef1b feat(integration_test): added much better example app that resets state before each test 2021-01-11 16:26:11 +11:00
Jon Samwell 2111b71259 fix(flutter_driver): various changes to get the flutter_driver part of the lib working so need to remove references to flutter_test / dart:ui 2021-01-09 13:49:49 +11:00
Jon Samwell 792f879707 chore(lib): updated changelog 2021-01-09 12:59:17 +11:00
Jon Samwell cf8d28d63e feat(integration_test): more progress with reporting 2021-01-08 17:20:30 +11:00
Jon Samwell 9ba3ced69a chore(libs): referencing the update dart_gherkin branch 2021-01-07 17:38:07 +11:00
Jon Samwell 6d474d483a feat(integration_test): first pass of code generation and gherkin tests running using the integration_test library 2021-01-07 17:30:59 +11:00
Jon Samwell 4b0ef616b4 * 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
2020-11-24 15:50:03 +11:00
Jon Samwell be85bc670a chore(lint): formating and changelog updates 2020-09-20 14:12:16 +10:00
Jon Samwell e4575e0e97 chore(docs): updated docs 2020-08-11 10:25:09 +10:00
Jon Samwell cc1196b2e2 feat(utils): added well know step and driver helper method to long press a widget 2020-08-11 10:20:31 +10:00
Jon Samwell 26dc2e4463 chore(lib): updated to latest gherkin library 2020-08-05 09:41:58 +10:00
Jon Samwell ee6a57c96f chore(lib): updated release to expose all steps 2020-08-03 16:28:25 +10:00
Jon Samwell 91a065e362 fix(#76): fixed issue with tap back button step 2020-07-26 12:25:22 +10:00
Jon Samwell 465f8eb00f chore(docs): updated changelog 2020-07-19 12:14:51 +10:00
Jon Samwell 9ef40c971c chore(changelog): updated attribution for new steps 2020-07-19 11:59:45 +10:00
Jon Samwell 859cf7028c
Merge branch 'master' into new-core-steps 2020-07-19 11:31:17 +10:00
Jon Samwell 9ba831a695 feat(steps): update lib to use new step function syntax 2020-07-19 11:28:52 +10:00
Tim Shedor f97b5890d7 add new steps 2020-06-07 12:19:27 -07:00
Jon Samwell b2cef2e4ec chore(libs): fixed lib version 2020-05-11 12:35:38 +10:00
Jon Samwell 1ca061820e chore(lib): updated dart_gherkin lib 2020-05-11 12:34:38 +10:00
Jon Samwell aad6af0ab1 fix(driver): fixed issue where the connection attempt of Flutter driver to a running app would not retry before throwing a connection error
feat(config): added a before `onBeforeFlutterDriverConnect` and after `onAfterFlutterDriverConnect` driver connection method property to the test configuration `FlutterTestConfiguration` to enable custom logic before and after a driver connection attempt.
2020-05-11 12:20:35 +10:00
Jon Samwell 2205ce1215 chore(lib): updated gherkin lib 2020-05-10 10:50:10 +10:00