@kesin11/junit2json@4.0.0
latest
Kesin11/ts-junit2jsonWorks with
•JSR Score100%•This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun




License
•MIT
Downloads26/wk
•Published3 days ago (4.0.0)
ts-juni2json provides a converter that convert JUnit XML format to JSON. Also provides TypeScript types definition. And also provide CLI that can convert a JUnit XML to JSON.
Functions
f
parse(): Promise<TestSuites | TestSuite | undefined | null>
xmlString: convertableToString,
xml2jsOptions?: OptionsV2
Parses the given JUnit XML string into a JavaScript object representation using xml2js library.
Type Aliases
T
Details = { message?: string; type?: string; inner?: string; }
It represents a <failure> and <errors> tag.
T
Property = { name?: string; value?: string; }
It represents a <properties> tag.
T
Skipped = { message?: string; }
It represents a <skipped> tag.
- message: stringNo documentation available
T
TestCase = { name?: string; classname?: string; assertions?: number; time?: number; status?: string; skipped?: Skipped[]; error?: Details[]; failure?: Details[]; system-out?: string[]; system-err?: string[]; }
It represents a <testcase> tag.
- assertions: numberNo documentation available
- classname: stringNo documentation available
- error: Details[]No documentation available
- failure: Details[]No documentation available
- name: stringNo documentation available
- skipped: Skipped[]No documentation available
- status: stringNo documentation available
- system-err: string[]No documentation available
- system-out: string[]No documentation available
- time: numberNo documentation available
T
TestSuite = { testcase?: TestCase[]; name?: string; tests?: number; failures?: number; errors?: number; time?: number; disabled?: number; skipped?: number; timestamp?: string; hostname?: string; id?: string; package?: string; properties?: Property[]; system-out?: string[]; system-err?: string[]; }
It represents a <testsuite> tag.
- disabled: numberNo documentation available
- errors: numberNo documentation available
- failures: numberNo documentation available
- hostname: stringNo documentation available
- id: stringNo documentation available
- name: stringNo documentation available
- package: stringNo documentation available
- properties: Property[]No documentation available
- skipped: numberNo documentation available
- system-err: string[]No documentation available
- system-out: string[]No documentation available
- testcase: TestCase[]No documentation available
- tests: numberNo documentation available
- time: numberNo documentation available
- timestamp: stringNo documentation available
T
TestSuites = { testsuite?: TestSuite[]; name?: string; time?: number; tests?: number; failures?: number; errors?: number; disabled?: number; }
It represents a <testsuites> tag.