Skip to content

Instantly share code, notes, and snippets.

@zawadz88
Last active June 24, 2018 19:34
Show Gist options
  • Select an option

  • Save zawadz88/2059ab2e39cd8e45359cc23cb5554ec7 to your computer and use it in GitHub Desktop.

Select an option

Save zawadz88/2059ab2e39cd8e45359cc23cb5554ec7 to your computer and use it in GitHub Desktop.
@Override
public void onStart() {
setJsBridgeClassName("android.support.test.espresso.web.bridge.JavaScriptBridge");
super.onStart();
/*
* The orchestrator cannot collect the list of tests as it is running in a different process
* than the test app. On first run, the Orchestrator will ask AJUR to list the tests
* out that would be run for a given class parameter. AJUR will then be successively
* called with whatever it passes back to the orchestratorListener.
*/
if (mRunnerArgs.listTestsForOrchestrator
&& isPrimaryInstrProcess(mRunnerArgs.targetProcess)) {
Request testRequest = buildRequest(mRunnerArgs, getArguments());
mOrchestratorListener.addTests(testRequest.getRunner().getDescription());
finish(Activity.RESULT_OK, new Bundle());
return;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment