MCPcopy Create free account
hub / github.com/expo/expo / buildLocalAndroidAndRunTestAsync

Function buildLocalAndroidAndRunTestAsync

tools/src/FirebaseTestLab.ts:34–57  ·  view source on GitHub ↗
(
  env: { [key: string]: any } = {}
)

Source from the content-addressed store, hash-verified

32}
33
34export async function buildLocalAndroidAndRunTestAsync(
35 env: { [key: string]: any } = {}
36): Promise<void> {
37 await spawnAsync('./gradlew', [':app:assembleDebug'], {
38 cwd: ANDROID_DIR,
39 env: {
40 ...process.env,
41 ...env,
42 },
43 });
44
45 await spawnAsync('./gradlew', [':app:assembleDebugAndroidTest'], {
46 cwd: ANDROID_DIR,
47 env: {
48 ...process.env,
49 ...env,
50 },
51 });
52
53 return await runAndroidTestsAsync(
54 path.join(ANDROID_DIR, 'app/build/outputs/apk/debug/app-debug.apk'),
55 path.join(ANDROID_DIR, 'app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk')
56 );
57}

Callers

nothing calls this directly

Calls 3

spawnAsyncFunction · 0.85
runAndroidTestsAsyncFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…