Open rekire opened 5 months ago
In the generated test bundle file, there's already a function named main
.
I could guess some other file names like default.dart which will cause compile errors.
Why would default.dart
cause compile errors?
I think that all dart keywords would cause trouble, since I got the impression that the file name get used as prefix or namespace (I'm right now not sure how it is called in dart)
ah yeah, this makes sense
Hi @rekire , thank you for creating this issue. That is a bug, though we're leaving it for now as it has low priority
Steps to reproduce
main.dart
pubspec.yaml
test_file_suffix
to.dart
patrol test -t integration_test/main.dart
Actual results
The test fails with the error:
It seems that the file name is used as some kind of namespace. I could guess some other file names like
default.dart
which will cause compile errors.Logs
Logs
``` ```Patrol version
patrol: ^3.7.3
Patrol Doctor output
Patrol Doctor output
``` Patrol CLI version: 2.7.0 Flutter command: flutter Flutter 3.22.1 • channel stable Android: • Program adb found in /censored/adb • Env var $ANDROID_HOME set to /censored/ iOS / macOS: • Program xcodebuild found in /usr/bin/xcodebuild • Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller ```Flutter Doctor output
Flutter Doctor output
``` ```