Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
troubleshoot web5 specs
Browse files Browse the repository at this point in the history
  • Loading branch information
leordev committed Aug 21, 2024
1 parent 14b17f0 commit adf9628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/actions/specs-report/src/junit-handler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as core from '@actions/core'
import * as junit2json from 'junit2json'

import { readFile } from './files'
Expand All @@ -15,6 +16,7 @@ export const parseJunitTestCases = async (
const junitTestCases: TestCase[] = []
for (const file of reportFiles) {
const fileContent = readFile(file)
core.debug(`Parsing JUnit XML file: ${file}\n${fileContent}\n\n---`)

const junit = await junit2json.parse(fileContent)
if (!junit) {
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/specs-report/src/test-vectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const buildTestVectorReport = async (
testVectorReport.totalJunitTestCases = totalJunitTestCases
testVectorReport.specTestCases = totalSpecTestCases
core.info(
`JUnit test cases parsed!${JSON.stringify(
`JUnit test cases parsed!\n${JSON.stringify(
{ totalJunitTestCases, totalSpecTestCases },
null,
2
Expand Down

0 comments on commit adf9628

Please sign in to comment.