-
- All Implemented Interfaces:
-
org.junit.rules.TestRule
public final class RoborazziRule extends TestWatcherThis 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
RoborazziOptionsandoutputDirectoryPathetc for captureRoboImage.Capture screenshots for each test when specifying RoborazziRule.options.captureType.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceRoborazziRule.IgnoreIf you add this annotation to the test, the test will be ignored by roborazzi's CaptureType.LastImage, CaptureType.AllImage and CaptureType.Gif.
public final classRoborazziRule.Optionspublic interfaceRoborazziRule.AccessibilityCheckStrategypublic interfaceRoborazziRule.CaptureTypepublic interfaceRoborazziRule.CaptureRoot
-
Constructor Summary
Constructors Constructor Description RoborazziRule(ViewInteraction captureRoot, RoborazziRule.Options options)RoborazziRule(ComposeTestRule composeRule, SemanticsNodeInteraction captureRoot, RoborazziRule.Options options)RoborazziRule(RoborazziRule.Options options)
-
Method Summary
Modifier and Type Method Description Statementapply(Statement base, Description description)-
-
Constructor Detail
-
RoborazziRule
RoborazziRule(ViewInteraction captureRoot, RoborazziRule.Options options)
-
RoborazziRule
RoborazziRule(ComposeTestRule composeRule, SemanticsNodeInteraction captureRoot, RoborazziRule.Options options)
-
RoborazziRule
RoborazziRule(RoborazziRule.Options options)
-
-
Method Detail
-
apply
Statement apply(Statement base, Description description)
-
-
-
-