olexale / bdd_widget_test

A BDD-style widget testing library
MIT License
101 stars 30 forks source link

feat: add option to disable ensureInitialized #66

Closed eikebartels closed 9 months ago

eikebartels commented 9 months ago

There are cases when you do not want the 'IntegrationTestWidgetsFlutterBinding.ensureInitialized();' to be include in the generated code. For example with the current patrol version.

For this case, I have added the option includeIntegrationTestBinding with the default of true. If you set this option to false the line will not be written in the generated test file