Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 606 Bytes

File metadata and controls

18 lines (15 loc) · 606 Bytes

BetterActivityTestRule

A simple testrule which will disable all animations. It will also help you to write UI test focused upon taking clean screenshots.

##Usage You can check out the sample provided in the repository.

@get:Rule var betterActivityTestRule: BetterActivityTestRule<*> = BetterActivityTestRule(MainActivity::class.java)

###Demo Mode (API 23+)

betterActivityTestRule.setClock("0730")
betterActivityTestRule.setBatteryLevel(100, false)
betterActivityTestRule.setWifiLevel(BetterActivityTestRule.WifiLevel.LEVEL_3)
betterActivityTestRule.hideNotifications(true)