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
feat: Make a snapshot and/or a screenshot in case of failure automatically
Use the new option `snapshogtOnError` to enable it and set the file name. Snapshots and screenshots need their directories specified for the failure snapshots.
Copy file name to clipboardExpand all lines: INSTRUCTIONS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -677,7 +677,7 @@ Stops executing firther commands and fails current Grunt task with the specified
677
677
## file
678
678
Type: `String`
679
679
680
-
Name of the file to write the snapshot to. If it does not end with ".html" or ".htm", the extension ".html" will be appended to it.
680
+
Name of the file to write the snapshot to. It will be put to lower-case before it is used. If it does not end with ".html" or ".htm", the extension ".html" will be appended to it.
681
681
682
682
If writing screenshots is enabled, the same name will be used for the file with the screenshot; just without the extension ".html" or ".htm", if the file name ends to it, and with the extension ".png" appended to the file name instead.
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,7 @@ Default options support the most usual usage scenario:
92
92
fileNumberDigits:3,
93
93
fileNumberSeparator:'.',
94
94
hangOnError:false,
95
+
snapshotOnError:'_last-error',
95
96
force:false
96
97
},
97
98
'google': {
@@ -209,6 +210,12 @@ Default value: false
209
210
210
211
If set to `true`, it will not abort the process in case of a failure. It is useful, if you want to investigate the situation on the screen right after an error occurred. If you encounter an error flip this flag and re-run the failing scenario. Once you are finished terminate the process or interrupt it by Ctrl+C.
211
212
213
+
### snapshotOnError
214
+
Type: `String`
215
+
Default value: '_last-error'
216
+
217
+
If set to a non-empty string, if will be used as a file name for an automatically taken snapshot and screenshot (if those are enabled), if the task execution fails.
0 commit comments