Skip to content

Port the testmu() mobile device provider as TestMuDevices (#2565) - #2646

Merged
kblok merged 2 commits into
mainfrom
fix/2565-testmu-device-provider
Dec 2, 2026
Merged

kblok merged 2 commits into
mainfrom
fix/2565-testmu-device-provider

Conversation

@kblok

@kblok kblok commented Dec 2, 2026

Copy link
Copy Markdown
Member

Closes #2565

What this adds

TestMuDevices (E2E.TestMu.Mobile) is upstream's testmu(). It is a device provider that leases a TestMu AI Android emulator, iOS simulator or real device for each worker slot, and drives it through an agent-device daemon with the @agent-device/testmu plugin. Set it as MobileOptions.Provider.

Before this, a mobile test could not run on TestMu AI. The package only had a preview Appium client. Users can now set Device, OsVersion, App, DeviceType and the other options, and get TestMu AI's session video in the report. The "Mobile devices" docs section now documents them.

Upstream parity

Upstream: tester-army/e2e packages/testmu (provider.ts, sessions.ts, dashboard.ts, credentials.ts), issue #2565. Verdict: complete, with the justified exceptions below.

Upstream Port
testmu() / TestmuOptions (provider.ts) TestMuDevices / TestMuDevicesOptions, with TestMuDeviceType and TestMuOrientation enums
sessions.ts: testmuApiEndpoint, findSession, sessionVideoUrl TestMuSessions (internal)
defaultSessionName New Dashboard.DefaultSessionName(runId, targetName, slot) overload in E2E.TestMu
testmuCredentials Existing TestMuCredentials, reached through a new project reference and InternalsVisibleTo
Lease, heartbeat, strict release (64432f1) Existing AgentDeviceLeases
  • Port-only symbols: TestMuDeviceType and TestMuOrientation replace upstream's string unions. The TestMuSessions and SessionRef split follows the existing BrowserStack port.
  • Plugin: installed from the npm registry (AgentDevicePlugin), where upstream links the package. The same difference exists for Revyl.

Upstream tests and their local match

Upstream test Port
testmu.test.ts Testmu/TestmuTests.cs
recording.test.ts Recording/TestmuRecordTests.cs
entries.test.ts Entries/EntriesTests.cs
plugin.test.ts Plugin/PluginTests.cs

All of recording.test.ts and plugin.test.ts is ported. The root-entry-off-web test in entries.test.ts is Partial_: the port has no E2E.Web assembly.

Not ported

  • Unknown-option test (rejects an option it does not take): C# types close it, so it has no counterpart.
  • Missing and non-string option tests are PARTIAL. They keep only the empty-string case. A missing option is a compile error. null is the default for DeviceType.
  • No follow-up issue: all of these are language differences, not missing features.

Other changes

  • Docs: testmu.mdx, mobile.mdx, skills/e2e-dotnet (SKILL.md and references/mobile.md), COMPATIBILITY.md, README.md and CONTRIBUTING.md.
  • E2E.TestMu.Mobile is added to publish.yml.
  • Not verified against a live TestMu AI account.
  • Real-model tests were skipped: no agent, prompt or engine code changed.

Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 321f5a9 and 9072f9c.

Files selected for processing: 22

  • .github/workflows/publish.yml
  • COMPATIBILITY.md
  • CONTRIBUTING.md
  • README.md
  • docs-site/src/content/docs/get-started/mobile.mdx
  • docs-site/src/content/docs/integrations/testmu.mdx
  • skills/e2e-dotnet/SKILL.md
  • skills/e2e-dotnet/references/mobile.md
  • src/E2E.Mobile/E2E.Mobile.csproj
  • src/E2E.TestMu.Mobile/E2E.TestMu.Mobile.csproj
  • src/E2E.TestMu.Mobile/README.md
  • src/E2E.TestMu.Mobile/TestMuDevices.cs
  • src/E2E.TestMu.Mobile/TestMuDevicesOptions.cs
  • src/E2E.TestMu.Mobile/TestMuSessions.cs
  • src/E2E.TestMu/Dashboard.cs
  • src/E2E.TestMu/E2E.TestMu.csproj
  • tests/E2E.TestMu.Mobile.Tests/Entries/EntriesTests.cs
  • tests/E2E.TestMu.Mobile.Tests/Helpers/FakeLeases.cs
  • tests/E2E.TestMu.Mobile.Tests/Helpers/FakeSessionsApi.cs
  • tests/E2E.TestMu.Mobile.Tests/Plugin/PluginTests.cs
  • tests/E2E.TestMu.Mobile.Tests/Recording/TestmuRecordTests.cs
  • tests/E2E.TestMu.Mobile.Tests/Testmu/TestmuTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kblok
kblok merged commit daa560f into main Dec 2, 2026
7 of 8 checks passed
@kblok
kblok deleted the fix/2565-testmu-device-provider branch December 2, 2026 11:23
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.

Port the testmu() mobile device provider (tester-army/e2e#1900)

2 participants