Skip to content

Test suite: forward the app's native CodePush logs into the test log - #28

Merged
ofalvai merged 1 commit into
masterfrom
push-slkwnlqmpunm
Aug 11, 2026
Merged

Test suite: forward the app's native CodePush logs into the test log#28
ofalvai merged 1 commit into
masterfrom
push-slkwnlqmpunm

Conversation

@ofalvai

@ofalvai ofalvai commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Had this need/idea while working on #27

Copilot AI left a comment

Copy link
Copy Markdown

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 enhances the mocha-based integration test harness by streaming the app’s native CodePush logs (iOS Simulator logs / Android logcat) into the test run output, improving diagnosability in CI and local runs.

Changes:

  • Add a native log forwarding subprocess (xcrun simctl log stream on iOS, adb logcat on Android).
  • Parse iOS log stream --style ndjson entries and prefix forwarded lines with [NATIVE] in the test output.
  • Start forwarding at test runtime and stop it at the end of the suite.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/test.ts
Comment on lines +732 to +738
// Failing to stream logs must never fail the run, this is diagnostics only. The handler
// is also required: an unhandled "error" event on a child process throws.
logProcess.on("error", (error: Error) => {
console.log(`[NATIVE] Could not stream native logs: ${error.message}`);
});

nativeLogProcess = logProcess;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@ofalvai
ofalvai force-pushed the push-slkwnlqmpunm branch from c8b9438 to b56b50b Compare August 11, 2026 11:13
@ofalvai
ofalvai marked this pull request as ready for review August 11, 2026 11:48
@ofalvai
ofalvai merged commit b9d0351 into master Aug 11, 2026
13 of 15 checks passed
@ofalvai
ofalvai deleted the push-slkwnlqmpunm branch August 11, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants