forked from trent_larson/crowd-funder-for-time-pwa
feat: Add comprehensive Android test logging and build tracking
- Add build_logs directory for tracking Android build output - Add Android generated assets to gitignore - Improve test logging with timestamps and build context - Add detailed error reporting for build and test failures - Add proper cleanup of Android build artifacts The changes improve Android testing by: 1. Tracking build history in build_logs directory 2. Providing detailed build context for debugging 3. Cleaning up generated assets properly 4. Improving error reporting and traceability 5. Adding structured logging for test execution Added: - build_logs/ directory for build history - Android assets cleanup in .gitignore - Detailed build and test logging
This commit is contained in:
1
android/app/.gitignore
vendored
1
android/app/.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
/build/*
|
||||
!/build/.npmkeep
|
||||
src/main/assets/public/assets/
|
||||
@@ -0,0 +1,20 @@
|
||||
package app.timesafari.app;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
@Test
|
||||
public void useAppContext() {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
assertEquals("app.timesafari.app", appContext.getPackageName());
|
||||
}
|
||||
}
|
||||
@@ -20,3 +20,6 @@ org.gradle.jvmargs=-Xmx1536m
|
||||
# Android operating system, and which are packaged with your app's APK
|
||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||
android.useAndroidX=true
|
||||
android.suppressUnsupportedCompileSdk=34
|
||||
android.suppressUnsupportedCompileSdk=34
|
||||
android.suppressUnsupportedCompileSdk=34
|
||||
|
||||
Reference in New Issue
Block a user