on-internet
← Community

Get the current project directory from flutter integration test

Stack Overflow ·

Is there a way to get the current project directory in flutter integration test? This is a basic test setup as an example. import 'dart:io'; import 'package:flutter_driver/driver_extension.dart'; import 'package:ivori/main.dart' as app; import 'package:glob/glob.dart'; void main() { // This line enables the extension. enableFlutterDriverExtension(); print("Where the working directory? ${Directory.current}"); print("What's under the current directory? ${Glob("*").listSync()}"); // Call the `main()` function of the app, or call `runApp` with // any widget you are interested in testing. app.main(

Comments

Sign in or sign up to comment and upvote.

No comments yet.