ortoni-report 2.0.3 → 2.0.5
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 +28 -0
- package/dist/ortoni-report.d.ts +32 -46
- package/dist/ortoni-report.js +23884 -826
- package/dist/ortoni-report.mjs +23886 -834
- package/dist/style/main.css +43 -1
- package/dist/utils/expressServer.js +33 -0
- package/dist/utils/utils.js +17 -1
- package/dist/utils/webSocketHelper.js +93 -0
- package/dist/views/main.hbs +202 -250
- package/dist/views/project.hbs +132 -0
- package/dist/views/summaryCard.hbs +5 -11
- package/dist/views/testPanel.hbs +2 -3
- package/dist/views/userInfo.hbs +193 -30
- package/package.json +6 -7
- package/readme.md +112 -65
- package/dist/cli/cli.js +0 -49
package/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Change Log:
|
|
2
2
|
|
|
3
|
+
## v2.0.5
|
|
4
|
+
|
|
5
|
+
### 🚀 New Features
|
|
6
|
+
- **Open report in localhost**: Introduced the ability to open the report on localhost with configurable options:
|
|
7
|
+
- `open?: "always" | "never" | "on-failure"`.
|
|
8
|
+
- **Open Trace viewer within the same browser**: Added functionality to view the Playwright trace within the same browser tab, enhancing the user experience.
|
|
9
|
+
|
|
10
|
+
### ✨ Improvements
|
|
11
|
+
- **Perfect Test content UI**: Enhanced the UI of the test content for a more polished and user-friendly interface.
|
|
12
|
+
- **Refactored code with multiple classes and utilities**: Codebase has been refactored for better organization, incorporating multiple classes and utilities to improve maintainability and scalability.
|
|
13
|
+
|
|
14
|
+
## Version 2.0.4
|
|
15
|
+
|
|
16
|
+
### 🚀 New Features
|
|
17
|
+
- **Tags & Annotations**: Added support for tags and annotations, allowing for more detailed reporting and metadata.
|
|
18
|
+
- **Project charts & summary UI**: Enhanced the user interface of project charts and the summary section for better presentation and usability.
|
|
19
|
+
|
|
20
|
+
### ✨ Improvements
|
|
21
|
+
|
|
22
|
+
- **Snippets color**: Improved the color scheme of code snippets for better readability.
|
|
23
|
+
|
|
24
|
+
### 🛠 Fixes
|
|
25
|
+
- **Console warning**: Resolved a console warning issue, improving overall stability.
|
|
26
|
+
|
|
27
|
+
### Documentation
|
|
28
|
+
- **Removed colors package**: Updated documentation to reflect the removal of the `colors` package.
|
|
29
|
+
|
|
30
|
+
|
|
3
31
|
## Version 2.0.3
|
|
4
32
|
|
|
5
33
|
#### 🚀 New Features
|
package/dist/ortoni-report.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@
|
|
|
4
4
|
* Configuration options for OrtoniReport.
|
|
5
5
|
*/
|
|
6
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 "always"
|
|
11
|
+
*/
|
|
12
|
+
open?: "always" | "never" | "on-failure";
|
|
7
13
|
/**
|
|
8
14
|
* The title of the HTML report.
|
|
9
15
|
* @example "Ortoni Playwright Test Report"
|
|
@@ -12,6 +18,7 @@ interface OrtoniReportConfig {
|
|
|
12
18
|
/**
|
|
13
19
|
* Add project on the list of the tests? (Filtering projects still works if hidden)
|
|
14
20
|
* @example true to display, false to hide.
|
|
21
|
+
* @default false
|
|
15
22
|
*/
|
|
16
23
|
showProject?: boolean;
|
|
17
24
|
/**
|
|
@@ -21,7 +28,7 @@ interface OrtoniReportConfig {
|
|
|
21
28
|
projectName?: string;
|
|
22
29
|
/**
|
|
23
30
|
* The name of the author.
|
|
24
|
-
* @example "
|
|
31
|
+
* @example "Koushik Chatterjee"
|
|
25
32
|
*/
|
|
26
33
|
authorName?: string;
|
|
27
34
|
/**
|
|
@@ -43,69 +50,48 @@ interface OrtoniReportConfig {
|
|
|
43
50
|
*/
|
|
44
51
|
base64Image?: boolean;
|
|
45
52
|
/**
|
|
46
|
-
* The local relative
|
|
47
|
-
*
|
|
48
|
-
* @example "/
|
|
53
|
+
* The local relative of the logo image.
|
|
54
|
+
* Recommended to keep within the ${folderPath} folder
|
|
55
|
+
* @example "folderPath/logo.png"
|
|
49
56
|
*/
|
|
50
57
|
logo?: string;
|
|
51
58
|
/**
|
|
52
59
|
* The filename to the html report.
|
|
53
60
|
* @example "index.html"
|
|
61
|
+
* @default "ortoni-report.html"
|
|
54
62
|
*/
|
|
55
63
|
filename?: string;
|
|
56
64
|
/**
|
|
57
65
|
* The folder name.
|
|
58
|
-
* @example "
|
|
66
|
+
* @example "report"
|
|
67
|
+
* @default "ortoni-report"
|
|
59
68
|
*/
|
|
60
69
|
folderPath?: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
location: string;
|
|
67
|
-
}
|
|
68
|
-
interface TestResultData {
|
|
69
|
-
suiteTags: string[];
|
|
70
|
-
testTags: string[];
|
|
71
|
-
location: string;
|
|
72
|
-
retry: string;
|
|
73
|
-
isRetry: number;
|
|
74
|
-
projectName: any;
|
|
75
|
-
suite: any;
|
|
76
|
-
title: string;
|
|
77
|
-
status: "passed" | "failed" | "timedOut" | "skipped" | "interrupted" | "expected" | "unexpected" | "flaky";
|
|
78
|
-
flaky: string;
|
|
79
|
-
duration: string;
|
|
80
|
-
errors: any[];
|
|
81
|
-
steps: Steps[];
|
|
82
|
-
logs: string;
|
|
83
|
-
screenshotPath?: string | null | undefined;
|
|
84
|
-
screenshots?: string[];
|
|
85
|
-
filePath: string;
|
|
86
|
-
filters: Set<string>;
|
|
87
|
-
tracePath?: string;
|
|
88
|
-
videoPath?: string;
|
|
89
|
-
base64Image: boolean | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Port to connect
|
|
72
|
+
* @example 3600
|
|
73
|
+
*/
|
|
74
|
+
port?: number;
|
|
90
75
|
}
|
|
91
76
|
|
|
92
77
|
declare class OrtoniReport implements Reporter {
|
|
93
|
-
private
|
|
78
|
+
private ortoniConfig;
|
|
79
|
+
private testResultProcessor;
|
|
80
|
+
private htmlGenerator;
|
|
81
|
+
private fileManager;
|
|
82
|
+
private serverManager;
|
|
94
83
|
private results;
|
|
95
|
-
private groupedResults;
|
|
96
|
-
private suiteName;
|
|
97
|
-
private config;
|
|
98
84
|
private projectSet;
|
|
85
|
+
private overAllStatus;
|
|
99
86
|
private folderPath;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
87
|
+
private outputFilename;
|
|
88
|
+
private outputPath;
|
|
89
|
+
constructor(ortoniConfig?: OrtoniReportConfig);
|
|
90
|
+
onBegin(config: FullConfig, _suite: Suite): void;
|
|
91
|
+
onTestBegin(_test: TestCase, _result: TestResult): void;
|
|
103
92
|
onTestEnd(test: TestCase, result: TestResult): void;
|
|
104
|
-
private attachFiles;
|
|
105
93
|
onEnd(result: FullResult): void;
|
|
106
|
-
|
|
107
|
-
private groupResults;
|
|
108
|
-
generateHTML(filteredResults: TestResultData[], totalDuration: string, cssContent: string): string;
|
|
94
|
+
onExit(): Promise<void>;
|
|
109
95
|
}
|
|
110
96
|
|
|
111
|
-
export { OrtoniReportConfig, OrtoniReport as default };
|
|
97
|
+
export { OrtoniReport, OrtoniReportConfig, OrtoniReport as default };
|