( context: WebSmokeContext, step: string, args: string[], result: CliJsonResult, assertionDetail?: string, )
| 284 | } |
| 285 | |
| 286 | function buildFailureDebug( |
| 287 | context: WebSmokeContext, |
| 288 | step: string, |
| 289 | args: string[], |
| 290 | result: CliJsonResult, |
| 291 | assertionDetail?: string, |
| 292 | ): string { |
| 293 | const lines = [formatResultDebug(step, args, result)]; |
| 294 | if (assertionDetail) lines.push('assertion:', assertionDetail); |
| 295 | lines.push('last snapshot context:', formatLastSnapshotContext(context)); |
| 296 | lines.push('recent step history:', formatStepHistory(context)); |
| 297 | lines.push('artifacts:', context.artifactDir); |
| 298 | return lines.join('\n'); |
| 299 | } |
| 300 | |
| 301 | function writeFailureArtifacts( |
| 302 | context: WebSmokeContext, |
no test coverage detected