AssetTestStore class Null safety

Test store that can be used to read tests from asset files. Each asset file may contain one or more tests.

In order to use the AssetTestStore to read from assets, you must set either the static testAssetIndex or the testAssets list (but not both) with the full asset name / path to retrieve the asset data from.

The AssetTestStore only supports the read operation and not the write or report operation.


AssetTestStore({String? testAssetIndex, List<String>? testAssets})


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
testAssetIndex String?
Set this to the path of an asset file containing an array with the list of other JSON files to load.
read / write
testAssets List<String>?
Set this to the list of asset files to use when loading the tests before calling testReader.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
testReader(BuildContext? context, {String? suiteName}) Future<List<PendingTest>>
Reads and returns zero or more tests from the assets defined by testAssets. This ignores the context that is passed in. This will never throw an error or return null and will instead return an empty array if it encounters issues loading the tests. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]