appTestCommands function

List<List<String>> appTestCommands(
  1. List<MatrixAppTest> tests
)

The flutter commands that run tests in an app once their files are in it: flutter pub add of their dev dependencies, if they have any; flutter analyze, since the tests follow the rules of the analysis of the app too; and flutter test, which runs every test of the app.

Implementation

List<List<String>> appTestCommands(List<MatrixAppTest> tests) => [
      ..._pubAdd(tests),
      const ['analyze'],
      const ['test'],
    ];