UnitTestTask constructor
UnitTestTask({
- required String projectPath,
- required ProjectType projectType,
- String? testName,
- String? testFilePath,
Implementation
UnitTestTask({
required this.projectPath,
required this.projectType,
this.testName,
this.testFilePath,
}) : super(
projectType == ProjectType.flutter ? 'flutter' : 'dart',
[
'test',
if (testFilePath != null) testFilePath,
if (testName != null) '--name $testName',
'--reporter=json',
],
workingDirectory: projectPath,
);