ortoni-report 2.0.7 → 2.0.9

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
@@ -4,94 +4,50 @@ Welcome to **Ortoni Report**, a comprehensive and visually appealing HTML report
4
4
 
5
5
  ### Live Demo: [Ortoni Report](https://ortoni.netlify.app/)
6
6
 
7
- ![Ortoni Report Preview](https://github.com/ortoniKC/ortoni-report/blob/V2.0.7/assets/images/v2.0.7.gif?raw=true)
7
+ ![Ortoni Report Preview](https://github.com/ortoniKC/ortoni-report/blob/V2.0.9/assets/images/release.gif?raw=true)
8
8
 
9
9
  ---
10
10
 
11
- ## Key Features
11
+ ### Key Features
12
12
 
13
- 1. **Hierarchical Grouping**
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.
14
18
 
15
- - Tests are structured and grouped by filename, suite, and project, providing a clear and organized view of the entire test execution.
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.
16
23
 
17
- 2. **Test History & Detailed Breakdown**
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.
18
28
 
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.
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.
21
34
 
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.
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.
84
40
 
85
41
  ---
86
42
 
87
- ## Installation & Setup
43
+ ### Installation & Setup
88
44
 
89
45
  ### Step 1: Install Ortoni Report
90
46
 
91
47
  Run the following command to install the **ortoni-report** package globally:
92
48
 
93
49
  ```bash
94
- npm install -d ortoni-report
50
+ npm install -D ortoni-report
95
51
  ```
96
52
 
97
53
  ### Step 2: Configure in `playwright.config.ts`
@@ -109,7 +65,7 @@ const reportConfig: OrtoniReportConfig = {
109
65
  title: "Ortoni Test Report",
110
66
  showProject: !true,
111
67
  projectName: "Ortoni-Report",
112
- testType: "Release - Nov 09, 2024",
68
+ testType: "e2e",
113
69
  authorName: "Koushik (LetCode with Koushik)",
114
70
  base64Image: false,
115
71
  stdIO: false,
@@ -134,7 +90,7 @@ const reportConfig = {
134
90
  title: "Ortoni Test Report",
135
91
  showProject: !true,
136
92
  projectName: "Ortoni-Report",
137
- testType: "Release - Nov 09, 2024",
93
+ testType: "e2e",
138
94
  authorName: "Koushik (LetCode with Koushik)",
139
95
  base64Image: false,
140
96
  stdIO: false,
@@ -146,48 +102,77 @@ export default defineConfig({
146
102
  // Other Playwright configurations
147
103
  });
148
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
+ ```
149
146
 
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.
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.
156
148
 
157
149
  ---
158
150
 
159
- ## Changelog
151
+ ### Changelog
160
152
 
161
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).
162
154
 
163
- ---
164
-
165
- ## License
155
+ ### License
166
156
 
167
157
  This project is licensed under the terms of the [LICENSE](https://github.com/ortoniKC/ortoni-report/blob/main/LICENSE.md).
168
158
 
169
- ---
170
-
171
- ## Feedback and Contributions
159
+ ### Feedback and Contributions
172
160
 
173
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).
174
162
 
175
- ---
176
163
 
177
164
  ## Support
178
165
 
179
166
  If you'd like to support this project, you can donate via UPI:
180
167
 
181
- **UPI**: ortoni@axl (Koushik Chatterjee)
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
+
182
170
  [Buy me coffee](https://buymeacoffee.com/letcode)
183
- [Paypal](https://paypal.me/koushik1677?country.x=IN&locale.x=en_GB)
184
171
 
185
- ---
172
+ [Paypal](https://paypal.me/koushik1677?country.x=IN&locale.x=en_GB)
186
173
 
187
174
  Thank you for using **Ortoni Report**! We’re committed to providing you with a superior Playwright testing experience.
188
175
 
189
176
  ---
190
177
 
191
178
  **LetCode with Koushik**
192
-
193
- ---