runAppTests function
Future<(int, String)>
runAppTests(
- GeneratedApp generated,
- MatrixApp app,
- List<
MatrixAppTest> tests, { - MatrixFlutter flutter = _flutter,
- FileSystem fileSystem = const LocalFileSystem(),
Adds tests to generated, the app of the matrix app, with
addAppTests, and runs the appTestCommands with flutter until one
fails; returns its exit code and the output up to it, which says which
command failed, or 0 and the output of all. A problem of the files of
the tests is a failure too, with the exit code 1.
Implementation
Future<(int, String)> runAppTests(
GeneratedApp generated,
MatrixApp app,
List<MatrixAppTest> tests, {
MatrixFlutter flutter = _flutter,
FileSystem fileSystem = const LocalFileSystem(),
}) =>
_addAndRun(
generated,
app,
tests,
appTestCommands(tests),
flutter: flutter,
fileSystem: fileSystem,
);