Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blaugold committed Oct 2, 2023
1 parent 3968315 commit bb552b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/native_assets_builder/test/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ Future<void> copyTestProjects({
}
}

/// Logger that outputs the full trace when a test fails.
Logger get logger => _logger ??= () {
// We lazily create a new logger for each test so that the messages
// captured by printOnFailure are scoped to the correct test.
addTearDown(() => _logger = null);
return _createTestLogger();
}();
Expand Down
1 change: 1 addition & 0 deletions pkgs/native_toolchain_c/test/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Future<Uri> tempDirForTest({String? prefix, bool keepTemp = false}) async {
return tempUri;
}

/// Logger that outputs the full trace when a test fails.
Logger get logger => _logger ??= () {
// We lazily create a new logger for each test so that the messages
// captured by printOnFailure are scoped to the correct test.
Expand Down

0 comments on commit bb552b7

Please sign in to comment.