I want to use large files (> 2 GB zip archives as well as video files) in my instrumentation tests to test file loading from SD card / internal storage.
How can I write these instrumentation tests and equip them with the files they need? For other tests, I only needed very small files so I put them in the app's raw resources
InputStream rStream = context.getResources().openRawResource(R.raw.smalltestvideo);
But now I need to specifically test large files for which this is not an option anymore. I am running with
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Aucun commentaire:
Enregistrer un commentaire