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/LICENSE.md +675 -675
- package/changelog.md +324 -287
- package/dist/chunk-DW4XGLAZ.mjs +22743 -0
- package/dist/cli/cli.d.mts +1 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +25767 -0
- package/dist/cli/cli.mjs +3042 -0
- package/dist/ortoni-report.d.mts +114 -0
- package/dist/ortoni-report.d.ts +108 -103
- package/dist/ortoni-report.js +821 -846
- package/dist/ortoni-report.mjs +273 -23029
- package/dist/style/main.css +80 -92
- package/dist/views/head.hbs +10 -10
- package/dist/views/main.hbs +1116 -576
- package/dist/views/navbar.hbs +34 -35
- package/dist/views/project.hbs +237 -237
- package/dist/views/sidebar.hbs +236 -0
- package/dist/views/summaryCard.hbs +14 -7
- package/dist/views/testIcons.hbs +12 -12
- package/dist/views/testPanel.hbs +44 -44
- package/dist/views/testStatus.hbs +8 -8
- package/dist/views/userInfo.hbs +251 -208
- package/package.json +55 -53
- package/readme.md +210 -193
package/readme.md
CHANGED
|
@@ -1,193 +1,210 @@
|
|
|
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.
|
|
6
|
-
|
|
7
|
-

|
|
6
|
+
|
|
7
|
+

|
|
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
|
+

|
|
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**
|