Skip to content
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

Android unit tests analytics #17

Closed
wants to merge 12 commits into from
Closed

Android unit tests analytics #17

wants to merge 12 commits into from

Conversation

fjnoyp
Copy link
Contributor

@fjnoyp fjnoyp commented Aug 9, 2020

Initial Android Unit Tests for the Analytics Pinpoint Module.

This PR is meant to demonstrate how to setup and run unit tests in Android for your modules. Please make sure to follow as closely as possible to the setup used here. Kyle Y and I ran into very significant bugs and issues with alternate setups and different code. Feel free to contact us if you run into issues when developing your own unit tests.

Please focus on the changes to AmplifyAnalyticsPinpointPluginTest
Changes made to the base android plugins module can be ignored (they are already contained in a separate PR 'Amplify analytics' that will be merged

print(e);
}

await amplifyInstance.configure(amplifyconfig);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a huge deal since this is just the example app, but you'll want to catch an error here.

Copy link
Contributor

@haverchuck haverchuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one comment, but it's a minor nit.

@fjnoyp
Copy link
Contributor Author

fjnoyp commented Aug 10, 2020

I'm going to delete this PR and put it into a separate PR based directly off of master.

@fjnoyp
Copy link
Contributor Author

fjnoyp commented Aug 12, 2020

Closing the PR. We will use offline tests and a different testing framework solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants