MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / analyze

Function analyze

lib/plugin/analyze.js:325–336  ·  view source on GitHub ↗
(failedTestAndError)

Source from the content-addressed store, hash-verified

323 }
324
325 async function analyze(failedTestAndError) {
326 const spinner = ora('Analyzing failure...').start()
327 const prompt = config.prompts.analyze(failedTestAndError, config)
328 try {
329 const response = await ai.createCompletion(prompt)
330 spinner.stop()
331 return formatResponse(response)
332 } catch (err) {
333 spinner.stop()
334 console.error('Error analyzing failure:', err.message)
335 }
336 }
337}
338
339function serializeError(error) {

Callers 1

printReportFunction · 0.85

Calls 4

formatResponseFunction · 0.85
createCompletionMethod · 0.80
stopMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected