ortoni-report 4.0.2-beta.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +22 -0
- package/dist/{chunk-INS3E7E6.mjs → chunk-4RZ5C7KY.mjs} +402 -296
- package/dist/{cli/cli.js → cli.js} +405 -190
- package/dist/cli.mjs +208 -0
- package/dist/index.html +2 -2
- package/dist/ortoni-report.d.mts +8 -1
- package/dist/ortoni-report.d.ts +8 -1
- package/dist/ortoni-report.js +210 -95
- package/dist/ortoni-report.mjs +24 -21
- package/package.json +11 -4
- package/readme.md +60 -75
- package/dist/chunk-45EJSEX2.mjs +0 -632
- package/dist/chunk-75EAJL2U.mjs +0 -632
- package/dist/chunk-A6HCKATU.mjs +0 -76
- package/dist/chunk-FGIYOFIC.mjs +0 -632
- package/dist/chunk-FHKWBHU6.mjs +0 -633
- package/dist/chunk-GLICR3VS.mjs +0 -637
- package/dist/chunk-HFO6XSKC.mjs +0 -633
- package/dist/chunk-HOZD6YIV.mjs +0 -634
- package/dist/chunk-IJO2YIFE.mjs +0 -637
- package/dist/chunk-JEIWNUQY.mjs +0 -632
- package/dist/chunk-JPLAGYR7.mjs +0 -632
- package/dist/chunk-NM6ULN2O.mjs +0 -632
- package/dist/chunk-OZS6QIJS.mjs +0 -638
- package/dist/chunk-P57227VN.mjs +0 -633
- package/dist/chunk-QMTRYN5N.js +0 -635
- package/dist/chunk-TI33PMMQ.mjs +0 -639
- package/dist/chunk-Z5NBP5TS.mjs +0 -635
- package/dist/cli/cli.cjs +0 -678
- package/dist/cli/cli.d.cts +0 -1
- package/dist/cli/cli.mjs +0 -103
- package/dist/ortoni-report.cjs +0 -2134
- package/dist/ortoni-report.d.cts +0 -111
- /package/dist/{cli/cli.d.mts → cli.d.mts} +0 -0
- /package/dist/{cli/cli.d.ts → cli.d.ts} +0 -0
package/dist/ortoni-report.d.cts
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { Reporter, FullConfig, Suite, TestCase, TestResult, TestError, FullResult } from '@playwright/test/reporter';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Configuration options for OrtoniReport.
|
|
5
|
-
*/
|
|
6
|
-
interface OrtoniReportConfig {
|
|
7
|
-
/**
|
|
8
|
-
* Open the report in local host (Trace viewer is accessible only in localhost)
|
|
9
|
-
* @example "always"| "never"| "on-failure";
|
|
10
|
-
* @default "never"
|
|
11
|
-
*/
|
|
12
|
-
open?: "always" | "never" | "on-failure";
|
|
13
|
-
/**
|
|
14
|
-
* The title of the HTML report.
|
|
15
|
-
* @example "Ortoni Playwright Test Report"
|
|
16
|
-
*/
|
|
17
|
-
title?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Add project on the list of the tests? (Filtering projects still works if hidden)
|
|
20
|
-
* @example true to display, false to hide.
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
showProject?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The name of the project.
|
|
26
|
-
* @example "Ortoni Project"
|
|
27
|
-
*/
|
|
28
|
-
projectName?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The name of the author.
|
|
31
|
-
* @example "Koushik Chatterjee"
|
|
32
|
-
*/
|
|
33
|
-
authorName?: string;
|
|
34
|
-
/**
|
|
35
|
-
* The type of tests being run.
|
|
36
|
-
* @example "Regression"
|
|
37
|
-
*/
|
|
38
|
-
testType?: string;
|
|
39
|
-
/**
|
|
40
|
-
* If true, images will be encoded in base64.
|
|
41
|
-
* Not recommended to use if many screenshots are present.
|
|
42
|
-
* @default false
|
|
43
|
-
* @example true
|
|
44
|
-
*/
|
|
45
|
-
base64Image?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* The local relative of the logo image.
|
|
48
|
-
* Recommended to keep within the report genrated folder.
|
|
49
|
-
* @default "ortoni-report/logo.png"
|
|
50
|
-
* @example "logo.png"
|
|
51
|
-
*/
|
|
52
|
-
logo?: string;
|
|
53
|
-
/**
|
|
54
|
-
* The filename to the html report.
|
|
55
|
-
* @example "index.html"
|
|
56
|
-
* @default "ortoni-report.html"
|
|
57
|
-
*/
|
|
58
|
-
filename?: string;
|
|
59
|
-
/**
|
|
60
|
-
* The folder name.
|
|
61
|
-
* @example "report"
|
|
62
|
-
* @default "ortoni-report"
|
|
63
|
-
*/
|
|
64
|
-
folderPath?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Port to connect
|
|
67
|
-
* @example 3600
|
|
68
|
-
*/
|
|
69
|
-
port?: number;
|
|
70
|
-
/**
|
|
71
|
-
* Display console logs?
|
|
72
|
-
* @example boolean
|
|
73
|
-
* @default true
|
|
74
|
-
*/
|
|
75
|
-
stdIO?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Metadata for the report. ['Test Cycle': 'Cycle 1', 'Test Environment':'QA', etc]
|
|
78
|
-
* @example { "key": "value" } as string
|
|
79
|
-
*/
|
|
80
|
-
meta?: Record<string, string>;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
declare class OrtoniReport implements Reporter {
|
|
84
|
-
private ortoniConfig;
|
|
85
|
-
private testResultProcessor;
|
|
86
|
-
private htmlGenerator;
|
|
87
|
-
private fileManager;
|
|
88
|
-
private serverManager;
|
|
89
|
-
private results;
|
|
90
|
-
private projectSet;
|
|
91
|
-
private overAllStatus;
|
|
92
|
-
private folderPath;
|
|
93
|
-
private outputFilename;
|
|
94
|
-
private outputPath;
|
|
95
|
-
private dbManager;
|
|
96
|
-
private shouldGenerateReport;
|
|
97
|
-
private showConsoleLogs;
|
|
98
|
-
private skipTraceViewer;
|
|
99
|
-
private config;
|
|
100
|
-
constructor(ortoniConfig?: OrtoniReportConfig);
|
|
101
|
-
private reportsCount;
|
|
102
|
-
onBegin(config: FullConfig, _suite: Suite): Promise<void>;
|
|
103
|
-
onStdOut(chunk: string | Buffer, _test: void | TestCase, _result: void | TestResult): void;
|
|
104
|
-
onTestEnd(test: TestCase, result: TestResult): void;
|
|
105
|
-
printsToStdio(): boolean;
|
|
106
|
-
onError(error: TestError): void;
|
|
107
|
-
onEnd(result: FullResult): Promise<void>;
|
|
108
|
-
onExit(): Promise<void>;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export { OrtoniReport, type OrtoniReportConfig, OrtoniReport as default };
|
|
File without changes
|
|
File without changes
|