Skip to content

Commit

Permalink
Merge branch 'main' into fixTable
Browse files Browse the repository at this point in the history
  • Loading branch information
aabughosh authored Jan 3, 2024
2 parents 53c250f + a85663f commit b04c4cd
Show file tree
Hide file tree
Showing 3 changed files with 473 additions and 494 deletions.
8 changes: 4 additions & 4 deletions html/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* global $ */
/* global initialjson, feedback, AnsiUp, dayjs, FileReader, MouseEvent, HTMLAnchorElement */
const expectedClaimVersion = 'v0.2.0'
const expectedClaimVersion = 'v0.4.0'
let isResultTabActive = false
let claimGlobal
let feedbackGlobal
Expand Down Expand Up @@ -372,7 +372,7 @@ function generateTestcaseSingleResultElement (currentTestResult, tableName, id,
const formattedDuration = duration.format('D[d] H[h] m[m] s[s] SSS[ms]')
let skippedReason = ''
if (currentTestResult.state === 'skipped') {
skippedReason = currentTestResult.failureReason
skippedReason = currentTestResult.skipReason
if (skippedReason === '') {
skippedReason = 'Test case skipped by configuration'
}
Expand All @@ -383,8 +383,8 @@ function generateTestcaseSingleResultElement (currentTestResult, tableName, id,
commonTestTextContent += '<td>' + formattedDuration + '</td>'
commonTestTextContent += '<td><b>' + currentTestResult.state + '</b>' + skippedReason + '</td>'
commonTestTextContent += '<td>' + ansiUp.ansi_to_html(ExtractLog(currentTestResult.capturedTestOutput)).replace(/\n/g, '<br>') + '</td></tr>'
const jsonObjNonCompliant = NonCompliantReasonTextToJson(currentTestResult.capturedTestOutput)
const jsonObjCompliant = CompliantReasonTextToJson(currentTestResult.capturedTestOutput)
const jsonObjNonCompliant = NonCompliantReasonTextToJson(currentTestResult.checkDetails)
const jsonObjCompliant = CompliantReasonTextToJson(currentTestResult.checkDetails)

commonTestTextContent += '</tbody></table></div>'

Expand Down
Loading

0 comments on commit b04c4cd

Please sign in to comment.