Skip to content

Commit

Permalink
update report with number of retries and failures
Browse files Browse the repository at this point in the history
  • Loading branch information
franktip committed Dec 19, 2024
1 parent afe6451 commit 48793bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/generateReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ function generateLLMorpheusReport(title, dirName, mutantsDirName){
totalCompletionTokens += nrCompletionTokens;
const nrTotalTokens = llmJsonObj.totalTokens;
totalTotalTokens += nrTotalTokens;
report += `| ${benchmark} | ${nrPrompts} | ${nrTotal} | ${nrKilled} | ${nrSurvived} | ${nrTimedOut} | ${mutationScore} | ${llmorpheusTime} | ${strykerTime} | ${nrPromptTokens} | ${nrCompletionTokens} | ${nrTotalTokens} |\n`;
nrRetries = llmJsonObj.nrRetries;
totalNrRetries += nrRetries;
nrFailures = llmJsonObj.nrFailures;
totalNrFailures += nrFailures;
report += `| ${benchmark} | ${nrPrompts} | ${nrTotal} | ${nrKilled} | ${nrSurvived} | ${nrTimedOut} | ${mutationScore} | ${llmorpheusTime} | ${strykerTime} | ${nrPromptTokens} | ${nrCompletionTokens} | ${nrTotalTokens} | ${nrRetries} | ${nrFailures} |\n`;
}
report += `| Total | ${totalPrompts} | ${totalMutants} | ${totalKilled} | ${totalSurvived} | ${totalTimedOut} | - | ${totalLLMorpheusTime.toFixed(2)} | ${totalStrykerTime.toFixed(2)} | ${totalPromptTokens} | ${totalCompletionTokens} | ${totalTotalTokens} |\n`;
report += `| Total | ${totalPrompts} | ${totalMutants} | ${totalKilled} | ${totalSurvived} | ${totalTimedOut} | - | ${totalLLMorpheusTime.toFixed(2)} | ${totalStrykerTime.toFixed(2)} | ${totalPromptTokens} | ${totalCompletionTokens} | ${totalTotalTokens} | ${totalNrRetries} | ${totalNrFailures} |\n`;

const metaData = retrieveMetaData(mutantsDirName);

Expand Down

0 comments on commit 48793bc

Please sign in to comment.