build_runner does not gererate .g file in integration_test folder
3lVv0w opened this issue · 3 comments
3lVv0w commented
i migrate from gherkin v2 -> 3 and follow the instruction i'm. currently stuck when to use
flutter pub run build_runner build --delete-conflicting-outputs
on model files it's working but nothings generate out on integration_test folder
spaquis commented
Hi @3lVv0w,
Did you add a build.yaml file in the root of the project with this content ?
targets:
$default:
sources:
- lib/**
- pubspec.*
- $package$
# Allows the code generator to target files outside of the lib folder
- integration_test/**.dart
jonsamwell commented
Sometimes you might need to clean the build cache as well. I've generally got a little script that does all this for me everytime I need to update any generated files
flutter pub run build_runner clean
flutter pub run build_runner build --delete-conflicting-outputs
flutter drive --driver=test/integration/test_driver.dart --target=test/integration/suites/gherkin_suite_test.dart --flavor development --dart-define=tagExpression="@debug"