junit-xml
Version:
JUnit XML report builder with TypeScript support
12 lines (11 loc) • 529 B
TypeScript
import { TestSuiteReport } from './TestResults';
export { TestSuiteReport, TestSuite, TestCase } from './TestResults';
interface Options {
/**
* Whether to conform to a specific schema. Possible options:
* - `default` The output is usable by GitLab.
* - `ant-junit`: Used by Azure DevOps. Found here: https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd
*/
schema: 'default' | 'ant-junit';
}
export declare function getJunitXml(report: TestSuiteReport, options?: Partial<Options>): string;