olexale / bdd_widget_test

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

feat: add option to disable ensureInitialized #67

Closed eikebartels closed 8 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

olexale commented 8 months ago

Thanks for the PR! I hope you don't mind that I slightly changed the implementation in some places. I'll publish a new version with your changes later today.