ortoni-report 2.0.5 → 2.0.7

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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # Change Log:
2
2
 
3
+ ## v2.0.7
4
+
5
+ #### 📦 New Features
6
+ - **Test History Display**: Added support for displaying test history up to the last 10 executions, providing better insight into recent test performance.
7
+ - **Console Error Reporting**: Enhanced with console error display and the ability to skip report generation if no tests are found.
8
+ - **Console Log Configuration**: Introduced a new `console` boolean configuration option to toggle the display of test console logs, set to `true` by default.
9
+
10
+ #### 👌 Improvements
11
+ - **UI and CSS Enhancements**:
12
+ - Updated CSS color scheme and implemented minor UI tweaks for a more polished look.
13
+ - Added project-specific icons for Chromium, Firefox, and WebKit to make test projects easily identifiable.
14
+
15
+ #### 🐛 Fixes
16
+ - **Trace Link Bug (#38)**: Fixed an issue where the trace link only captured the origin and not the pathname, ensuring accurate trace navigation.
17
+
18
+
19
+
20
+ ## v2.0.6
21
+
22
+ #### 🐛 Fixes
23
+ - **Trace Path in Pipeline**: Resolved issue with incorrect trace file path in CI/CD pipeline, ensuring trace paths are properly resolved.
24
+
25
+ #### 👌 Improvements
26
+ - **Search Functionality**:
27
+ - **Removed from Navbar**: Search functionality has been removed from the navbar to enhance navigation simplicity.
28
+ - **Added to Test Panel**: Search functionality has been relocated to the test panel for more intuitive test filtering.
29
+
30
+ - **UI Enhancements**:
31
+ - Updated the overall UI with gradient color status indicators, making test status visuals more vibrant and user-friendly.
32
+
3
33
  ## v2.0.5
4
34
 
5
35
  ### 🚀 New Features
@@ -1,4 +1,4 @@
1
- import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@playwright/test/reporter';
1
+ import { Reporter, FullConfig, Suite, TestCase, TestResult, TestError, FullResult } from '@playwright/test/reporter';
2
2
 
3
3
  /**
4
4
  * Configuration options for OrtoniReport.
@@ -72,6 +72,12 @@ interface OrtoniReportConfig {
72
72
  * @example 3600
73
73
  */
74
74
  port?: number;
75
+ /**
76
+ * Display console logs?
77
+ * @example boolean
78
+ * @default true
79
+ */
80
+ stdIO?: boolean;
75
81
  }
76
82
 
77
83
  declare class OrtoniReport implements Reporter {
@@ -86,11 +92,17 @@ declare class OrtoniReport implements Reporter {
86
92
  private folderPath;
87
93
  private outputFilename;
88
94
  private outputPath;
95
+ private dbManager;
96
+ private shouldGenerateReport;
97
+ private showConsoleLogs;
89
98
  constructor(ortoniConfig?: OrtoniReportConfig);
90
- onBegin(config: FullConfig, _suite: Suite): void;
91
- onTestBegin(_test: TestCase, _result: TestResult): void;
99
+ private reportsCount;
100
+ onBegin(config: FullConfig, _suite: Suite): Promise<void>;
101
+ onStdOut(chunk: string | Buffer, _test: void | TestCase, _result: void | TestResult): void;
92
102
  onTestEnd(test: TestCase, result: TestResult): void;
93
- onEnd(result: FullResult): void;
103
+ printsToStdio(): boolean;
104
+ onError(error: TestError): void;
105
+ onEnd(result: FullResult): Promise<void>;
94
106
  onExit(): Promise<void>;
95
107
  }
96
108