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.
@@ -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