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
Post a Comment