1.4.0-alpha-2
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