Package 

Class RoborazziRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    
    public final class RoborazziRule
    extends TestWatcher
                        

    This rule is a JUnit rule for roborazzi. This rule is optional. You can use captureRoboImage without this rule.

    This rule have two features.

    • Provide context such as RoborazziOptions and outputDirectoryPath etc for captureRoboImage.

    • Capture screenshots for each test when specifying RoborazziRule.options.captureType.