UNPKG

2.4 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/karma-junit-reporter`
3
4# Summary
5This package contains type definitions for karma-junit-reporter (https://github.com/karma-runner/karma-junit-reporter#readme).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-junit-reporter.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-junit-reporter/index.d.ts)
10````ts
11// Type definitions for karma-junit-reporter 2.0
12// Project: https://github.com/karma-runner/karma-junit-reporter#readme
13// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/peterblazejewicz>
14// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15// TypeScript Version: 3.2
16
17import 'karma';
18
19declare module 'karma' {
20 interface ConfigOptions {
21 junitReporter?: JUnitReporterConfiguration | undefined;
22 }
23
24 interface JUnitReporterConfiguration {
25 /** results will be saved as $outputDir/$browserName.xml */
26 outputDir?: string | undefined;
27 /** if included, results will be saved as $outputDir/$browserName/$outputFile */
28 outputFile?: string | undefined;
29 /** suite will become the package name attribute in xml testsuite element */
30 suite?: string | undefined;
31 /** add browser name to report and classes names */
32 useBrowserName?: boolean | undefined;
33 /** function (browser, result) to customize the name attribute in xml testcase element */
34 nameFormatter?: ((browser: any, result: any) => string) | undefined;
35 /** function (browser, result) to customize the classname attribute in xml testcase element */
36 classNameFormatter?: ((browser: any, result: any) => string) | undefined;
37 /** key value pair of properties to add to the <properties> section of the report */
38 properties?: {
39 [key: string]: any;
40 } | undefined;
41 /** use '1' if reporting to be per SonarQube 6.2 XML format */
42 xmlVersion?: number | null | undefined;
43 }
44}
45
46````
47
48### Additional Details
49 * Last updated: Thu, 08 Jul 2021 16:23:07 GMT
50 * Dependencies: [@types/karma](https://npmjs.com/package/@types/karma)
51 * Global values: none
52
53# Credits
54These definitions were written by [Piotr Błażejewicz (Peter Blazejewicz)](https://github.com/peterblazejewicz).
55
\No newline at end of file