FirebaseStorageTestStore constructor
FirebaseStorageTestStore({})
Initializes the test store. This requires the FirebaseStorage
to be
assigned and initialized.
The imagePath is optional and is the path within Firebase Storage where the screenshots must be saved. If omitted, this defaults to 'images'. This only is utilized if the storage is not-null. If the storage is null then this is ignored and screenshots are not uploaded.
The testCollectionPath is optional and is the collection within Firebase Realtime Databse where the tests themselves must be saved. If omitted, this defaults to 'tests'.
The reportCollectionPath is optional and is the collection within Firebase Realtime Database where the test reports must be saved. If omitted, this defaults to 'reports'.
Implementation
FirebaseStorageTestStore({
this.imagePath,
this.maxDataSize = 50 * 1024 * 1024, // 50mb
this.reportCollectionPath,
required this.storage,
this.testCollectionPath,
});