ogurets_flutter 1.1.1 ogurets_flutter: ^1.1.1 copied to clipboard
Ogurets Support for Flutter.
ogurets_flutter #
ogurets is a Gherkin + Cucumber implementation in Dart, focused on making your life writing tests as easy as possible, with the minimum of boilerplate fuss. ogurets_flutter is a flutter extension to ogurets which adds support for:
- Running against an existing running application (as long as you know the observatory port)
- Starting the application for you and controlling it to ensure it is allowed to Restart and set its state back to the beginning without having to quit and rerun the application
- Terminating the application (or not) on completion
- Allowing you to set a default for restarts or no-restarts and use Gherkin tags to control behaviour.
notes
ogurets flutter cannot be used from flutter driver
because it needs to know what the observatory port is. If
you wish to include it in your test runs, just use Dart itself and run your _test.dart runner, it will start your
main app and control it.
The only reason you will need to not use this mechanism is if you want to keep your app
running while you are writing your test, in which case start it with flutter run
, take note of the Observatory
Port and set it in an environment variable: VM_SERVICE_URL
. If ogurets_flutter sees that when it starts, it will
simply use it, but restart functionality will be turned off. Only use this when testing scenario by scenario and
you are writing and changing code and restarting the app yourself or where the state isn't important.
authors
- Irina Southwell (nee Капрельянц Ирина), Principal Engineer (https://www.linkedin.com/in/irina-southwell-9727a422/)
- Richard Vowles, Software Developer (https://www.linkedin.com/in/richard-vowles-72035193/)
We also thank Jon Samwell of Flutter Gherkin for his idea (and core code) for managing the run of the the application.