When using Allure as a report framework, image-comparator-allure
should be used.
Add to build.gradle
.
implementation("com.github.ngoanh2n:image-comparator-allure:1.5.0")
Add to pom.xml
.
<dependency>
<groupId>com.github.ngoanh2n</groupId>
<artifactId>image-comparator-allure</artifactId>
<version>1.5.0</version>
</dependency>
You can change comparison description on Allure by creating file image-comparator-allure.properties
in folder resources
.
Default description as below.
subject=Image Comparison
expImage=Source: Expected Image
actImage=Source: Actual Image
resultImage=Result: Diff Image
resultDeviation=Result: Deviation
Name | Description | Default |
---|---|---|
ngoanh2n.img.includeSource |
Indicate which attaches image sources to Allure report. | true |
ngoanh2n.img.includeResult |
Indicate which attaches comparison result (diff image and deviation) to Allure report. | true |