Skip to content

1.4.0-alpha-2

Compare
Choose a tag to compare
@takahirom takahirom released this 22 Jun 01:22
· 1255 commits to main since this release
74f4878

⚠️ Breaking Changes from 1.3.x
This release introduces several changes to RoborazziRule.

Refactored RoborazziRule.Options parameter.

Before:

RoborazziRule.Options(
  captureType = CaptureType.LastImage,
  outputFileProvider = xxx
)

After:

RoborazziRule.Options(
  captureType = CaptureType.LastImage(
    outputFileProvider = xxx
  )
)

The roborazziOptions property in RoborazziRule.Options now determines the default options for captureRoboImage(). If an option is not specified for captureRoboImage(), it will use the roborazziOptions defined in RoborazziRule.Options.

In addition, the outputDirectoryPath property in RoborazziRule.Options now influences the default storage path for captureRoboImage(). If a file name is not specified for captureRoboImage() and RoborazziRule.Options.outputDirectoryPath is used, the file path will be adjusted accordingly.

New Feature

Added CaptureType.None. This allows you to simply provide the outputDirectoryPath and RoborazziOptions when using RoborazziRule.

Bug fix

CaptureType.LastImage, which is the default parameter of RoborazziRule, used to take a lot of screenshots to capture the last image. Now, a screenshot is taken simply after the test.

Notice
We're considering changing the default parameter of RoborazziRule from CaptureType.LastImage to CaptureType.None. We'd appreciate your thoughts on this. #106

What's Changed

  • RoborazziOption can now be set in RoborazziRule and used in captureRoboImage() by @takahirom in #108

Full Changelog: 1.4.0-alpha-1...1.4.0-alpha-2