Closed Bug 1572245 Opened 5 years ago Closed 3 years ago

Add a way to restart the runtime during testing

Categories

(GeckoView :: General, enhancement, P2)

Unspecified
All
enhancement

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: agi, Assigned: agi)

References

(Blocks 3 open bugs)

Details

(Whiteboard: [geckoview:m95])

Attachments

(1 file)

We need a way to test different configurations for GeckoView. E.g. Telemetry Snapshots and Streaming telemetry cannot be tested with the same configuration.

One way to do that would be to set up a test target that uses the android Orchestrator and restarts the app every test run (we probably don't want to do that for every test, since it makes the tests really slow).

https://developer.android.com/training/testing/junit-runner#using-android-test-orchestrator

P2

Priority: -- → P2
Rank: 40

Morphed into allowing restarting the runtime which would trivially allow the initial use case too.

Summary: Add a way to test different RuntimeSettings → Add a way to restart the runtime during testing
Blocks: 1612489
Blocks: 1622323
Blocks: 1631637

This patch adds a new test service class that can be used to more easily write
a test that needs to run multiple runtimes or needs to reset the runtime.

The service also includes an optional Instance class that can be used to
control the service and send and receive messages from the remote runtime.

Assignee: nobody → agi
Status: NEW → ASSIGNED

Adding to the sprint as part of P1 Bug 1714945.

Whiteboard: [geckoview:m95]
Blocks: 1714945
Pushed by asferro@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c73b3f9bd97c
Add TestRuntimeService to restart runtime in tests. r=owlish
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: