-
Notifications
You must be signed in to change notification settings - Fork 68
feat: Implement integration testing #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
| log_info '1. Check if ANDROID_HOME is set: echo $ANDROID_HOME' | ||
| log_info '2. Verify emulator binary exists: ls $ANDROID_HOME/emulator/emulator' | ||
| log_info "3. List available AVDs: emulator -list-avds" | ||
| log_info "4. The startup script uses 'sudo' which may require a password" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary. There should be other ways to fix it.
| * This app initializes the mParticle SDK with WireMock endpoints and sends | ||
| * test events for validation against WireMock recordings. | ||
| */ | ||
| public class IntegrationTestApplication extends Application { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we convert this to Kotlin?
| * This activity sends a series of test events that match the iOS integration | ||
| * test suite to ensure feature parity. | ||
| */ | ||
| public class MainActivity extends AppCompatActivity { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This as well. All the new files can be in Kotlin.
| String apiKey = extras.getString("MPARTICLE_API_KEY"); | ||
| String apiSecret = extras.getString("MPARTICLE_API_SECRET"); | ||
| if (apiKey != null && apiSecret != null) { | ||
| // Write to credentials file for Application class to read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Application onCreate would have finished by this time.
Do we need to support dynamic keys? Why don't we set the keys at build time itself?


Background
It uses WireMock to validate SDK network requests against expected baselines and runs automatically in CI.
This improves regression detection and increases confidence when shipping changes to the SDK.
What Has Changed
Screenshots/Video
Checklist
Additional Notes
Reference Issue (For employees only. Ignore if you are an outside contributor)