Skip to content

Instantly share code, notes, and snippets.

@elihart
Created November 20, 2019 20:40
Show Gist options
  • Select an option

  • Save elihart/d0ee97cb1ab9dbfb0d0b3fff0fa1d182 to your computer and use it in GitHub Desktop.

Select an option

Save elihart/d0ee97cb1ab9dbfb0d0b3fff0fa1d182 to your computer and use it in GitHub Desktop.
HappoTestActivity
class HappoTestActivity : IntegrationTestActivity() {
override fun testCurrentScreen(
mockProvider: MockedFragmentProvider,
fragment: MvRxFragment,
resetView: (onViewReset: (MvRxFragment) -> Unit) -> Unit,
finishedTestingFragment: () -> Unit
) {
happoViewSnapshotBuilder.snap(
activity = this,
component = mockProvider.fragmentName,
variant = mockProvider.mockData.name
)
finishedTestingFragment()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment