You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allure reports may also be generated directly from the tool. To do so, add
106
107
```
107
108
"plugins": {
@@ -110,4 +111,35 @@ Allure reports may also be generated directly from the tool. To do so, add
110
111
```
111
112
in the config file.
112
113
The attachments will be added to the report only when the calulated mismatch is greater than the given tolerance.
113
-
Set `output` to where the generated report is to be stored. Default is the output directory of the project.
114
+
Set `output` to where the generated report is to be stored. Default is the output directory of the project.
115
+
116
+
### AWS Support
117
+
AWS S3 support to upload and download various images is also provided.
118
+
It can be used by adding the *aws* code inside `"ResembleHelper"` in the `"helpers"` section in config file. The final result should look like:
119
+
```json
120
+
{
121
+
"helpers": {
122
+
"ResembleHelper" : {
123
+
"require": "codeceptjs-resemblehelper",
124
+
"screenshotFolder" : "<location of output folder>",
125
+
"baseFolder": "<location of base folder>",
126
+
"diffFolder": "<location of diff folder>",
127
+
"aws": {
128
+
"accessKeyId" : "<Your AccessKeyId>",
129
+
"secretAccessKey": "<Your secretAccessKey>",
130
+
"region": "<Region of Bucket>",
131
+
"bucketName": "<Bucket Name>"
132
+
}
133
+
}
134
+
}
135
+
}
136
+
```
137
+
When this option has been provided, the helper will download the base image from the S3 bucket.
138
+
This base image has to be located inside a folder named "*base*".
139
+
The resultant output image will be uploaded in a folder named "*output*" and diff image will be uploaded to a folder named "*diff*" in the S3 bucket.
140
+
If the `prepareBaseImage` option is marked `true`, then the generated base image will be uploaded to a folder named "*base*" in the S3 bucket.
141
+
>Note: The tests may take a bit longer to run when the AWS configuration is provided as determined by the internet speed to upload/download images.
142
+
143
+
### Known Issues:
144
+
145
+
> Issue in Windows where the image comparison is not carried out, and therefore no Mismatch Percentage is shown. See 'loadImageData' function in resemble.js
0 commit comments