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

Segment in Robolectric unit tests #640

Open
edenman opened this issue Feb 12, 2020 · 1 comment
Open

Segment in Robolectric unit tests #640

edenman opened this issue Feb 12, 2020 · 1 comment

Comments

@edenman
Copy link

edenman commented Feb 12, 2020

What do people do for this? Use a wrapper class and have a fake implementation of that? Mockito? It would be great if there were some easy way to build a no-op and set it like Analytics.setSingletonInstance(NO_OP_SEGMENT_ANALYTICS)

@saadfarooq
Copy link

Fake implementation would be better even better than no-op.

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

No branches or pull requests

2 participants