Putting test files in the test
directory involves mental gymnastics of remembering to move test file when sources move or to even find a corresponding test file.
Is there a way in flutter to place test files next the source?
flutter test -h
doesn't have any path related options.
This can be achieved with
flutter test lib/**/*_test.dart
Found the hint from Dart test package readme at https://github.com/dart-lang/test/tree/master/pkgs/test#running-tests
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With