ortoni-report 2.0.8 → 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,193 +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.7/assets/images/v2.0.7.gif?raw=true)
8
-
9
- ---
10
-
11
- ## Key Features
12
-
13
- 1. **Hierarchical Grouping**
14
-
15
- - Tests are structured and grouped by filename, suite, and project, providing a clear and organized view of the entire test execution.
16
-
17
- 2. **Test History & Detailed Breakdown**
18
-
19
- - Added support for displaying test history up to the last 10 executions, providing better insight into recent test performance.
20
- - Each suite displays tests categorized by project, with organized test results for better navigation.
21
-
22
- 3. **Comprehensive Test Details**
23
-
24
- - Rich details include test status (passed, failed, skipped), duration, tags, errors, logs, annotations, screenshots, videos, and trace data.
25
- - Users can sort and filter tests by suite, project, or script for more focused insights.
26
-
27
- 4. **Summary Statistics**
28
-
29
- - Overview displays total tests, passed, failed, skipped, and flaky tests, with a success rate calculation for each suite.
30
-
31
- 5. **Chart Visualizations**
32
-
33
- - Visualize test result distributions using:
34
- - **Doughnut Chart**: Illustrates overall test result status (passed, failed, skipped, flaky).
35
- - **Doughnut & Bar Charts**: Breakdown of results per project (Chromium, Firefox, etc.) for easy comparison.
36
-
37
- 6. **Advanced Search and Reset**
38
-
39
- - Search and filter tests quickly using specific keywords or criteria. Easily reset filters to display all tests again.
40
-
41
- 7. **Customization & Themes**
42
-
43
- - Personalize reports with project details, author name, test type, and toggle between light and dark themes.
44
- - Flexibility to choose between Base64 images or file paths for screenshots.
45
- - Customize report filenames and folder paths.
46
-
47
- 8. **Test Attachments**
48
-
49
- - Screenshots
50
- - Videos
51
- - Trace viewer
52
- - Steps
53
- - Error stack trace
54
- - Console logs
55
- - Tests History
56
-
57
- 9. **Integration and Configuration**
58
-
59
- - Easily configure and integrate with Playwright using TypeScript/JavaScript.
60
- - Configure reporting preferences within the Playwright setup for quick customization.
61
-
62
- 10. **Add Your Logo**
63
-
64
- - Include your branding by adding a relative or absolute path to the config for a custom logo in the report.
65
-
66
- 11. **Share Reports**
67
-
68
- - Generated reports are self-contained and ready to share right away, making it easier to distribute and review.
69
-
70
- 12. **Advanced Filtering**
71
-
72
- - Apply filters based on project, tags, and test status simultaneously for precise reporting. See only the relevant tests.
73
-
74
- 13. **Colorful and Intuitive Dashboard**
75
-
76
- - Vibrant, intuitive color schemes enhance the dashboard’s visual appeal, improving clarity for quick test status assessment.
77
-
78
- 14. **Selected Status Display**
79
-
80
- - The UI now clearly displays the selected status filter, helping users keep track of the current filter criteria.
81
-
82
- 15. **Hide Skipped Tests by Default**
83
- - By default, skipped tests are hidden when using the "All Tests" filter, allowing for a more focused review of relevant test cases.
84
-
85
- ---
86
-
87
- ## Installation & Setup
88
-
89
- ### Step 1: Install Ortoni Report
90
-
91
- Run the following command to install the **ortoni-report** package globally:
92
-
93
- ```bash
94
- npm install -d ortoni-report
95
- ```
96
-
97
- ### Step 2: Configure in `playwright.config.ts`
98
-
99
- Set up **Ortoni Report** in your Playwright configuration file with the following example:
100
-
101
- ```typescript
102
- import { defineConfig } from "@playwright/test";
103
- import { OrtoniReportConfig } from "ortoni-report";
104
-
105
- const reportConfig: OrtoniReportConfig = {
106
- open: process.env.CI ? "never" : "always",
107
- folderPath: "report-db",
108
- filename: "index.html",
109
- title: "Ortoni Test Report",
110
- showProject: !true,
111
- projectName: "Ortoni-Report",
112
- testType: "Release - Nov 09, 2024",
113
- authorName: "Koushik (LetCode with Koushik)",
114
- base64Image: false,
115
- stdIO: false,
116
- preferredTheme: "light"
117
- };
118
-
119
- export default defineConfig({
120
- reporter: [["ortoni-report", reportConfig]],
121
- // Other Playwright configurations
122
- });
123
- ```
124
-
125
- ### Configure in `playwright.config.js`
126
-
127
- ```javascript
128
- import { defineConfig } from "@playwright/test";
129
-
130
- const reportConfig = {
131
- open: process.env.CI ? "never" : "always",
132
- folderPath: "report-db",
133
- filename: "index.html",
134
- title: "Ortoni Test Report",
135
- showProject: !true,
136
- projectName: "Ortoni-Report",
137
- testType: "Release - Nov 09, 2024",
138
- authorName: "Koushik (LetCode with Koushik)",
139
- base64Image: false,
140
- stdIO: false,
141
- preferredTheme: "light"
142
- };
143
-
144
- export default defineConfig({
145
- reporter: [["ortoni-report", reportConfig]],
146
- // Other Playwright configurations
147
- });
148
- ```
149
-
150
- ## Detailed Test Information
151
-
152
- - **Rich Test Data**: Each test includes details such as title, status, duration, tags, errors, steps, logs, video, and screenshots.
153
- - **Color-Coded Status**: Green for passed, red for failed, yellow for skipped—offering a quick overview of test outcomes.
154
- - **Static HTML Report**: Self-contained, standalone HTML files make sharing and storing reports convenient.
155
- - **Test History**: Added support for displaying test history up to the last 10 executions, providing better insight into recent test performance.
156
-
157
- ---
158
-
159
- ## Changelog
160
-
161
- 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).
162
-
163
- ---
164
-
165
- ## License
166
-
167
- This project is licensed under the terms of the [LICENSE](https://github.com/ortoniKC/ortoni-report/blob/main/LICENSE.md).
168
-
169
- ---
170
-
171
- ## Feedback and Contributions
172
-
173
- 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).
174
-
175
- ---
176
-
177
- ## Support
178
-
179
- If you'd like to support this project, you can donate via UPI:
180
-
181
- **UPI**: ortoni@axl (Koushik Chatterjee)
182
- [Buy me coffee](https://buymeacoffee.com/letcode)
183
- [Paypal](https://paypal.me/koushik1677?country.x=IN&locale.x=en_GB)
184
-
185
- ---
186
-
187
- Thank you for using **Ortoni Report**! We’re committed to providing you with a superior Playwright testing experience.
188
-
189
- ---
190
-
191
- **LetCode with Koushik**
192
-
193
- ---
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**