IoTestStore class
Test store that uses dart:io
to perform CRUD operations on tests, reports,
and images. This is not supported on the web platform, and all functions
are set to no-op when on web to prevent compile issues if accidentally
included in a web build.
Constructors
- IoTestStore({String imagePath = 'output/images', String reportPath = 'output/reports', String testPath = 'output/tests'})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imagePath → String
-
final
- reportPath → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- testPath → String
-
final
Methods
-
goldenImageWriter(
TestReport report) → Future< void> -
When running on a non-web platform this will write the golden images from
the given
report
to the file system using the imagePath. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
testImageReader(
{required TestDeviceInfo deviceInfo, required String imageId, String? suiteName, required String testName, int? testVersion}) → Future< Uint8List?> - When running on a non-web platform this will read the images from the file system using the imagePath.
-
testReader(
BuildContext? context, {String? suiteName}) → Future< List< PendingTest> ?> - When running on a non-web platform this will read the tests from the file system using the testPath.
-
testReporter(
TestReport report) → Future< bool> -
When running on a non-web platform this will write the
report
to the file system using the reportPath. -
testWriter(
BuildContext context, Test test) → Future< bool> -
When running on a non-web platform this will write the
test
to the file system using the testPath. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited