Skip to content

Conversation

@matouskozak
Copy link
Member

Combined backport of #1348 and #1383 to ensure we're able to track mobile test failures on release/9.0 branch as well.

…tion (dotnet#1348)

* unify adb and main console log output on Android

* unify main and appOutputLog for iOS devices

* Unify logs for MacCatalyst
…ices and MacCatalyst (dotnet#1383)

- Move the logic of unifying the app and main logs to the TestOrchestrator.
- Copy system and application logs to the main log after the app has finished.
@matouskozak matouskozak self-assigned this Aug 4, 2025
@matouskozak matouskozak added enhancement New feature or request apple iOS/tvOS/WatchOS/Mac Catalyst area android Android area labels Aug 4, 2025
@matouskozak matouskozak marked this pull request as ready for review August 5, 2025 17:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR backports mobile log unification improvements to ensure better tracking of mobile test failures on the release/9.0 branch. The changes consolidate system and application logs into the main log for improved failure investigation across Apple and Android platforms.

  • Adds automatic copying of system and application logs to the main log for Apple platforms (excluding simulators where logs are already included)
  • Duplicates Android ADB logs to the main console log for easier failure investigation
  • Minor formatting improvement in AppTester.cs

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
TestOrchestrator.cs Adds CopyLogsToMainLog method and calls it after test execution for device testing
AppTester.cs Minor formatting change to improve readability of test reporter factory call
AdbRunner.cs Duplicates ADB log output to main console log for better failure investigation
Comments suppressed due to low confidence (1)

@matouskozak matouskozak enabled auto-merge (squash) August 7, 2025 13:11
@matouskozak matouskozak merged commit 7b6f582 into dotnet:release/9.0 Aug 26, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Android area apple iOS/tvOS/WatchOS/Mac Catalyst area enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants