Skip to content

Commit

Permalink
it is justa an and
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo committed May 19, 2023
1 parent ddb70ae commit 1789dfd
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions lib/src/cli/flutter_cli.dart
Original file line number Diff line number Diff line change
Expand Up @@ -398,19 +398,17 @@ Future<int> _flutterTest({
var testPath = suite.path!;
var testName = test.name;

if (optimizationApplied) {
// When there is a test error before any group is computed, it means
// that there is an error when compiling the test optimizer file.
if (groups.isNotEmpty) {
final topGroupName = _topGroupName(test, groups)!;

testPath = testPath.replaceFirst(
_testOptimizerFileName,
topGroupName,
);
// When there is a test error before any group is computed, it means
// that there is an error when compiling the test optimizer file.
if (optimizationApplied && groups.isNotEmpty) {
final topGroupName = _topGroupName(test, groups)!;

testName = testName.replaceFirst(topGroupName, '').trim();
}
testPath = testPath.replaceFirst(
_testOptimizerFileName,
topGroupName,
);

testName = testName.replaceFirst(topGroupName, '').trim();
}

final relativeTestPath = p.relative(testPath, from: cwd);
Expand Down

0 comments on commit 1789dfd

Please sign in to comment.