ortoni-report 2.0.9 → 3.0.0

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/readme.md CHANGED
@@ -1,178 +1,210 @@
1
- # Ortoni Report by Koushik (LetCode with Koushik)
2
-
3
- Welcome to **Ortoni Report**, a comprehensive and visually appealing HTML report generator tailored for Playwright tests. Designed with powerful features and customizable options, Ortoni Report simplifies the process of reviewing and managing test results, making test reporting more intuitive and accessible.
4
-
5
- ### Live Demo: [Ortoni Report](https://ortoni.netlify.app/)
6
-
7
- ![Ortoni Report Preview](https://github.com/ortoniKC/ortoni-report/blob/V2.0.9/assets/images/release.gif?raw=true)
8
-
9
- ---
10
-
11
- ### Key Features
12
-
13
- ### 1. **Organization & Grouping**
14
- - **Hierarchical Grouping**: Tests are structured by filename, suite, and project, providing an organized overview.
15
- - **Test History & Detailed Breakdown**: Support for displaying up to 10 recent executions, categorized by suite and project for easy navigation.
16
- - **Integration and Configuration**: Easy integration with Playwright using TypeScript/JavaScript, with configurable preferences.
17
- - **Advanced Filtering**: Filters for project, tags, and status, with the ability to reset for a full view.
18
-
19
- ### 2. **Detailed Reporting**
20
- - **Comprehensive Test Details**: Status, duration, tags, errors, logs, screenshots, videos, and trace data.
21
- - **Test Attachments**: Screenshots, videos, trace viewer, steps, error stack trace, and console logs.
22
- - **Selected Status Display**: The UI highlights the active status filter for clarity.
23
-
24
- ### 3. **Visualization & Insights**
25
- - **Summary Statistics**: Total tests and distribution of passed, failed, skipped, and flaky tests with success rates.
26
- - **Chart Visualizations**: Doughnut chart for overall status and bar charts for project-specific comparisons.
27
- - **Colorful and Intuitive Dashboard**: Vibrant themes for better visual appeal.
28
-
29
- ### 4. **Customization & Personalization**
30
- - **Customization & Themes**: Toggle between light/dark themes, add project details, and personalize reports.
31
- - **Add Your Logo**: Configurable logo for brand personalization.
32
- - **Flexibility with Attachments**: Choose Base64 or file paths for screenshots.
33
- - **Custom Report Paths**: Set custom filenames and folder paths for reports.
34
-
35
- ### 5. **User Experience & Usability**
36
- - **Advanced Search and Reset**: Search tests with keywords or criteria, with reset options.
37
- - **Hide Skipped Tests by Default**: Simplifies view by hiding skipped tests initially.
38
- - **Share Reports**: Self-contained reports for easy sharing and review.
39
- - **Comprehensive Filters**: Apply multiple filters simultaneously for focused insights.
40
-
41
- ---
42
-
43
- ### Installation & Setup
44
-
45
- ### Step 1: Install Ortoni Report
46
-
47
- Run the following command to install the **ortoni-report** package globally:
48
-
49
- ```bash
50
- npm install -D ortoni-report
51
- ```
52
-
53
- ### Step 2: Configure in `playwright.config.ts`
54
-
55
- Set up **Ortoni Report** in your Playwright configuration file with the following example:
56
-
57
- ```typescript
58
- import { defineConfig } from "@playwright/test";
59
- import { OrtoniReportConfig } from "ortoni-report";
60
-
61
- const reportConfig: OrtoniReportConfig = {
62
- open: process.env.CI ? "never" : "always",
63
- folderPath: "report-db",
64
- filename: "index.html",
65
- title: "Ortoni Test Report",
66
- showProject: !true,
67
- projectName: "Ortoni-Report",
68
- testType: "e2e",
69
- authorName: "Koushik (LetCode with Koushik)",
70
- base64Image: false,
71
- stdIO: false,
72
- preferredTheme: "light"
73
- };
74
-
75
- export default defineConfig({
76
- reporter: [["ortoni-report", reportConfig]],
77
- // Other Playwright configurations
78
- });
79
- ```
80
-
81
- ### Configure in `playwright.config.js`
82
-
83
- ```javascript
84
- import { defineConfig } from "@playwright/test";
85
-
86
- const reportConfig = {
87
- open: process.env.CI ? "never" : "always",
88
- folderPath: "report-db",
89
- filename: "index.html",
90
- title: "Ortoni Test Report",
91
- showProject: !true,
92
- projectName: "Ortoni-Report",
93
- testType: "e2e",
94
- authorName: "Koushik (LetCode with Koushik)",
95
- base64Image: false,
96
- stdIO: false,
97
- preferredTheme: "light"
98
- };
99
-
100
- export default defineConfig({
101
- reporter: [["ortoni-report", reportConfig]],
102
- // Other Playwright configurations
103
- });
104
- ```
105
- ## Using the Ortoni Report CLI
106
-
107
- ### Command: `show-report`
108
-
109
- This command starts a local Express server and serves the generated Ortoni report. You can open the report in your default browser.
110
-
111
- #### Options
112
- - **`-d, --dir <path>`**: Path to the folder containing the report. Defaults to `ortoni-report`.
113
- - **`-f, --file <filename>`**: Name of the report file. Defaults to `ortoni-report.html`.
114
- - **`-p, --port <port>`**: Port number for the local server. Defaults to `2004`.
115
-
116
- #### Example Usage
117
-
118
- 1. **Default Usage**
119
- ```bash
120
- npx ortoni-report show-report
121
- ```
122
- This will:
123
- - Look for the report file `ortoni-report.html` in the `ortoni-report` folder.
124
- - Start the server on port `2004`.
125
-
126
- 2. **Custom folder and file Options**
127
- ```bash
128
- npx ortoni-report show-report --dir custom-folder --file my-report.html --port 3000
129
- ```
130
- This will:
131
- - Look for the file `my-report.html` in `custom-folder`.
132
- - Start the server on port `3000`.
133
-
134
- #### Errors and Troubleshooting
135
- - If the specified file or folder does not exist, you will see an error like:
136
- ```
137
- Error: The file "my-report.html" does not exist in the folder "custom-folder".
138
- ```
139
- Ensure the file and folder paths are correct.
140
-
141
- #### Accessing the Report
142
- Once the server is running, open your browser and navigate to:
143
- ```
144
- http://localhost:<port>
145
- ```
146
-
147
- Replace `<port>` with the port number you specified or the default port (`2004`). The report will automatically open in your default browser if the `always` option is enabled.
148
-
149
- ---
150
-
151
- ### Changelog
152
-
153
- Stay up-to-date with the latest features, improvements, and bug fixes by reviewing the [Changelog](https://github.com/ortoniKC/ortoni-report/blob/main/changelog.md).
154
-
155
- ### License
156
-
157
- This project is licensed under the terms of the [LICENSE](https://github.com/ortoniKC/ortoni-report/blob/main/LICENSE.md).
158
-
159
- ### Feedback and Contributions
160
-
161
- We encourage you to share feedback and contribute to improving Ortoni Report! For issues, suggestions, or contributions, please visit our [GitHub repository](https://github.com/ortoniKC/ortoni-report).
162
-
163
-
164
- ## Support
165
-
166
- If you'd like to support this project, you can donate via UPI:
167
-
168
- <img src="https://raw.githubusercontent.com/ortoniKC/ortoniKC/refs/heads/main/ortoni.png" alt="ortoni@ybl" title="UPI Payment" style="width:25%; height:25%">
169
-
170
- [Buy me coffee](https://buymeacoffee.com/letcode)
171
-
172
- [Paypal](https://paypal.me/koushik1677?country.x=IN&locale.x=en_GB)
173
-
174
- Thank you for using **Ortoni Report**! We’re committed to providing you with a superior Playwright testing experience.
175
-
176
- ---
177
-
178
- **LetCode with Koushik**
1
+ # Ortoni Report
2
+
3
+ Welcome to **Ortoni Report**, a comprehensive and visually appealing HTML report generator tailored for Playwright tests. Designed with powerful features and customizable options, Ortoni Report simplifies the process of reviewing and managing test results, making test reporting more intuitive and accessible.
4
+
5
+ ### Live Demo: [Ortoni Report](https://ortoni.letcode.in/)
6
+
7
+ ![Ortoni Report Preview](https://github.com/ortoniKC/ortoni-report/blob/V2.0.9/assets/images/release.gif?raw=true)
8
+
9
+ ---
10
+
11
+ ## Key Features
12
+
13
+ ### 1. **Organization & Navigation**
14
+
15
+ - **New Sidebar Navigation**: The previous navbar has been replaced with a sidebar, offering a more structured and intuitive navigation experience.
16
+ - **Sidebar Sections**:
17
+ - **Dashboard**: View overall test statistics and summaries.
18
+ - **Tests**: Browse detailed test results, including logs, screenshots, and errors.
19
+ - **Hierarchical Grouping**: Tests are structured by filename, suite, and project, providing an organized overview.
20
+ - **Test History & Detailed Breakdown**: Support for displaying up to 10 recent executions, categorized by suite and project for easy navigation.
21
+ - **Integration and Configuration**: Easy integration with Playwright using TypeScript/JavaScript, with configurable preferences.
22
+ - **Advanced Filtering**: Filters for project, tags, and status, with the ability to reset for a full view.
23
+
24
+ ### 2. **Detailed Reporting**
25
+
26
+ - **Comprehensive Test Details**: Status, duration, tags, errors, logs, screenshots, videos, and trace data.
27
+ - **Test Attachments**: Screenshots, videos, trace viewer, steps, error stack trace, and console logs.
28
+ - **Selected Status Display**: The UI highlights the active status filter for clarity.
29
+
30
+ ### 3. **Visualization & Insights**
31
+
32
+ - **Summary Statistics**: Total tests and distribution of passed, failed, skipped, and flaky tests with success rates.
33
+ - **Chart Visualizations**: Doughnut chart for overall status and bar charts for project-specific comparisons.
34
+ - **All-New Colorful UI**: A vibrant, redesigned interface with better contrast and readability.
35
+
36
+ ### 4. **Customization & Personalization**
37
+
38
+ - **New Color Scheme**: Supports both **light and dark themes**, ensuring a comfortable viewing experience.
39
+ - **Add Your Logo**: Configurable logo for brand personalization.
40
+ - **Flexibility with Attachments**: Choose Base64 or file paths for screenshots.
41
+ - **Custom Report Paths**: Set custom filenames and folder paths for reports.
42
+
43
+ ### 5. **User Experience & Usability**
44
+
45
+ - **Advanced Search and Reset**: Search tests with keywords or criteria, with reset options.
46
+ - **Hide Skipped Tests by Default**: Simplifies view by hiding skipped tests initially.
47
+ - **Share Reports**: Self-contained reports for easy sharing and review.
48
+ - **Comprehensive Filters**: Apply multiple filters simultaneously for focused insights.
49
+ - **Meta**: Add user meta information to the reporter
50
+
51
+ ---
52
+
53
+ ## Installation & Setup
54
+
55
+ ### Step 1: Install Ortoni Report
56
+
57
+ Run the following command to install the **ortoni-report** package globally:
58
+
59
+ ```bash
60
+ npm install -D ortoni-report
61
+ ```
62
+
63
+ ### Step 2: Configure in `playwright.config.ts`
64
+
65
+ Set up **Ortoni Report** in your Playwright configuration file with the following example:
66
+
67
+ ```typescript
68
+ import { defineConfig } from "@playwright/test";
69
+ import { OrtoniReportConfig } from "ortoni-report";
70
+
71
+ const reportConfig: OrtoniReportConfig = {
72
+ open: process.env.CI ? "never" : "always", // default to never
73
+ folderPath: "report-db",
74
+ filename: "index.html",
75
+ title: "Ortoni Test Report",
76
+ showProject: !true,
77
+ projectName: "Ortoni-Report",
78
+ testType: "e2e",
79
+ authorName: "Koushik (LetCode with Koushik)",
80
+ base64Image: false,
81
+ stdIO: false,
82
+ preferredTheme: "light",
83
+ meta: {
84
+ project: "Playwright",
85
+ version: "3.0.0",
86
+ description: "Playwright test report",
87
+ testCycle: "1",
88
+ release: "1.0.0",
89
+ platform: "Windows",
90
+ },
91
+ };
92
+
93
+ export default defineConfig({
94
+ reporter: [["ortoni-report", reportConfig]],
95
+ // Other Playwright configurations
96
+ });
97
+ ```
98
+
99
+ ### Configure in `playwright.config.js`
100
+
101
+ ```javascript
102
+ import { defineConfig } from "@playwright/test";
103
+
104
+ const reportConfig = {
105
+ open: process.env.CI ? "never" : "always",
106
+ folderPath: "report-db",
107
+ filename: "index.html",
108
+ title: "Ortoni Test Report",
109
+ showProject: !true,
110
+ projectName: "Ortoni-Report",
111
+ testType: "e2e",
112
+ authorName: "Koushik (LetCode with Koushik)",
113
+ base64Image: false,
114
+ stdIO: false,
115
+ preferredTheme: "light",
116
+ meta: {
117
+ project: "Playwright",
118
+ version: "3.0.0",
119
+ description: "Playwright test report",
120
+ testCycle: "1",
121
+ release: "1.0.0",
122
+ platform: "Windows",
123
+ },
124
+ };
125
+
126
+ export default defineConfig({
127
+ reporter: [["ortoni-report", reportConfig]],
128
+ // Other Playwright configurations
129
+ });
130
+ ```
131
+
132
+ ## Using the Ortoni Report CLI
133
+
134
+ ### Command: `show-report`
135
+
136
+ This command starts a local Express server and serves the generated Ortoni report. You can open the report in your default browser.
137
+
138
+ #### Options
139
+
140
+ - **`-d, --dir <path>`**: Path to the folder containing the report. Defaults to `ortoni-report`.
141
+ - **`-f, --file <filename>`**: Name of the report file. Defaults to `ortoni-report.html`.
142
+ - **`-p, --port <port>`**: Port number for the local server. Defaults to `2004`.
143
+
144
+ #### Example Usage
145
+
146
+ 1. **Default Usage**
147
+
148
+ ```bash
149
+ npx ortoni-report show-report
150
+ ```
151
+
152
+ This will:
153
+ - Look for the report file `ortoni-report.html` in the `ortoni-report` folder.
154
+ - Start the server on port `2004`.
155
+
156
+ 2. **Custom folder and file Options**
157
+ ```bash
158
+ npx ortoni-report show-report --dir custom-folder --file my-report.html --port 3000
159
+ ```
160
+ This will:
161
+ - Look for the file `my-report.html` in `custom-folder`.
162
+ - Start the server on port `3000`.
163
+
164
+ #### Errors and Troubleshooting
165
+
166
+ - If the specified file or folder does not exist, you will see an error like:
167
+ ```
168
+ Error: The file "my-report.html" does not exist in the folder "custom-folder".
169
+ ```
170
+ Ensure the file and folder paths are correct.
171
+
172
+ #### Accessing the Report
173
+
174
+ Once the server is running, open your browser and navigate to:
175
+
176
+ ```
177
+ http://localhost:<port>
178
+ ```
179
+
180
+ Replace `<port>` with the port number you specified or the default port (`2004`). The report will automatically open in your default browser if the `always` option is enabled.
181
+
182
+ ---
183
+
184
+ ## Changelog
185
+
186
+ Stay up-to-date with the latest features, improvements, and bug fixes by reviewing the [Changelog](https://github.com/ortoniKC/ortoni-report/blob/main/changelog.md).
187
+
188
+ ## License
189
+
190
+ This project is licensed under the terms of the [LICENSE](https://github.com/ortoniKC/ortoni-report/blob/main/LICENSE.md).
191
+
192
+ ## Feedback and Contributions
193
+
194
+ I encourage you to share feedback and contribute to improving Ortoni Report! For issues, suggestions, or contributions, please visit our [GitHub repository](https://github.com/ortoniKC/ortoni-report).
195
+
196
+ ## Support
197
+
198
+ If you'd like to support this project, you can donate via UPI:
199
+
200
+ ![UPI Payment](https://raw.githubusercontent.com/ortoniKC/ortoniKC/refs/heads/main/ortoni.png)
201
+
202
+ [Buy me coffee](https://buymeacoffee.com/letcode) | [Paypal](https://paypal.me/koushik1677?country.x=IN&locale.x=en_GB)
203
+
204
+ Thank you for using **Ortoni Report**! I'm committed to providing you with a superior Playwright testing experience.
205
+
206
+ ---
207
+ **Developer & Designer**
208
+ Koushik Chatterjee - [YouTuber](http://youtube.com/@letcode)
209
+
210
+ **LetCode with Koushik**