intellij idea - Flutter: how to load file for testing -


file can read directory relative dart script file, var file = new file('./fixture/contacts.json').

however file cannot read flutter test running inside ide.

loading resource (it not, since not want bundle test data file in app) not work in test.

what way read file in flutter (for both command line test , ide test)?

running flutter test fast. testing inside intellij ide ver slow, can set debug breakpoint , step , view variables. both testing useful.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -