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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -