ortoni-report 2.0.6 → 2.0.8

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,4 +1,24 @@
1
1
  # Change Log:
2
+ ## v2.0.8
3
+
4
+ #### 🐛 Fixes
5
+ - **Peer Dependency**: Added peer dependecy to avoid external package conflict
6
+
7
+ ## v2.0.7
8
+
9
+ #### 📦 New Features
10
+ - **Test History Display**: Added support for displaying test history up to the last 10 executions, providing better insight into recent test performance.
11
+ - **Console Error Reporting**: Enhanced with console error display and the ability to skip report generation if no tests are found.
12
+ - **Console Log Configuration**: Introduced a new `console` boolean configuration option to toggle the display of test console logs, set to `true` by default.
13
+
14
+ #### 👌 Improvements
15
+ - **UI and CSS Enhancements**:
16
+ - Updated CSS color scheme and implemented minor UI tweaks for a more polished look.
17
+ - Added project-specific icons for Chromium, Firefox, and WebKit to make test projects easily identifiable.
18
+
19
+ #### 🐛 Fixes
20
+ - **Trace Link Bug (#38)**: Fixed an issue where the trace link only captured the origin and not the pathname, ensuring accurate trace navigation.
21
+
2
22
 
3
23
 
4
24
  ## v2.0.6
@@ -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