ortoni-report 4.0.1-beta.0 → 4.0.1-beta.3

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.
Files changed (37) hide show
  1. package/dist/chunk-4RZ5C7KY.mjs +744 -0
  2. package/dist/{chunk-MPZLDOCN.mjs → chunk-HOOC3MDY.mjs} +305 -304
  3. package/dist/chunk-ISCRDMPY.mjs +693 -0
  4. package/dist/{chunk-INS3E7E6.mjs → chunk-P72FKFLZ.mjs} +352 -298
  5. package/dist/chunk-S45BZGXX.mjs +744 -0
  6. package/dist/{chunk-OZS6QIJS.mjs → chunk-ZG4JPYLC.mjs} +352 -298
  7. package/dist/{chunk-TI33PMMQ.mjs → chunk-ZSPTPISU.mjs} +352 -299
  8. package/dist/{cli/cli.js → cli.js} +403 -189
  9. package/dist/cli.mjs +206 -0
  10. package/dist/index.html +2 -2
  11. package/dist/ortoni-report.d.mts +7 -0
  12. package/dist/ortoni-report.d.ts +7 -0
  13. package/dist/ortoni-report.js +189 -72
  14. package/dist/ortoni-report.mjs +9 -5
  15. package/package.json +11 -4
  16. package/dist/chunk-45EJSEX2.mjs +0 -632
  17. package/dist/chunk-75EAJL2U.mjs +0 -632
  18. package/dist/chunk-A6HCKATU.mjs +0 -76
  19. package/dist/chunk-FGIYOFIC.mjs +0 -632
  20. package/dist/chunk-FHKWBHU6.mjs +0 -633
  21. package/dist/chunk-GLICR3VS.mjs +0 -637
  22. package/dist/chunk-HFO6XSKC.mjs +0 -633
  23. package/dist/chunk-HOZD6YIV.mjs +0 -634
  24. package/dist/chunk-IJO2YIFE.mjs +0 -637
  25. package/dist/chunk-JEIWNUQY.mjs +0 -632
  26. package/dist/chunk-JPLAGYR7.mjs +0 -632
  27. package/dist/chunk-NM6ULN2O.mjs +0 -632
  28. package/dist/chunk-P57227VN.mjs +0 -633
  29. package/dist/chunk-QMTRYN5N.js +0 -635
  30. package/dist/chunk-Z5NBP5TS.mjs +0 -635
  31. package/dist/cli/cli.cjs +0 -678
  32. package/dist/cli/cli.d.cts +0 -1
  33. package/dist/cli/cli.mjs +0 -103
  34. package/dist/ortoni-report.cjs +0 -2134
  35. package/dist/ortoni-report.d.cts +0 -111
  36. /package/dist/{cli/cli.d.mts → cli.d.mts} +0 -0
  37. /package/dist/{cli/cli.d.ts → cli.d.ts} +0 -0
@@ -1,111 +0,0 @@
1
- import { Reporter, FullConfig, Suite, TestCase, TestResult, TestError, FullResult } from '@playwright/test/reporter';
2
-
3
- /**
4
- * Configuration options for OrtoniReport.
5
- */
6
- interface OrtoniReportConfig {
7
- /**
8
- * Open the report in local host (Trace viewer is accessible only in localhost)
9
- * @example "always"| "never"| "on-failure";
10
- * @default "never"
11
- */
12
- open?: "always" | "never" | "on-failure";
13
- /**
14
- * The title of the HTML report.
15
- * @example "Ortoni Playwright Test Report"
16
- */
17
- title?: string;
18
- /**
19
- * Add project on the list of the tests? (Filtering projects still works if hidden)
20
- * @example true to display, false to hide.
21
- * @default false
22
- */
23
- showProject?: boolean;
24
- /**
25
- * The name of the project.
26
- * @example "Ortoni Project"
27
- */
28
- projectName?: string;
29
- /**
30
- * The name of the author.
31
- * @example "Koushik Chatterjee"
32
- */
33
- authorName?: string;
34
- /**
35
- * The type of tests being run.
36
- * @example "Regression"
37
- */
38
- testType?: string;
39
- /**
40
- * If true, images will be encoded in base64.
41
- * Not recommended to use if many screenshots are present.
42
- * @default false
43
- * @example true
44
- */
45
- base64Image?: boolean;
46
- /**
47
- * The local relative of the logo image.
48
- * Recommended to keep within the report genrated folder.
49
- * @default "ortoni-report/logo.png"
50
- * @example "logo.png"
51
- */
52
- logo?: string;
53
- /**
54
- * The filename to the html report.
55
- * @example "index.html"
56
- * @default "ortoni-report.html"
57
- */
58
- filename?: string;
59
- /**
60
- * The folder name.
61
- * @example "report"
62
- * @default "ortoni-report"
63
- */
64
- folderPath?: string;
65
- /**
66
- * Port to connect
67
- * @example 3600
68
- */
69
- port?: number;
70
- /**
71
- * Display console logs?
72
- * @example boolean
73
- * @default true
74
- */
75
- stdIO?: boolean;
76
- /**
77
- * Metadata for the report. ['Test Cycle': 'Cycle 1', 'Test Environment':'QA', etc]
78
- * @example { "key": "value" } as string
79
- */
80
- meta?: Record<string, string>;
81
- }
82
-
83
- declare class OrtoniReport implements Reporter {
84
- private ortoniConfig;
85
- private testResultProcessor;
86
- private htmlGenerator;
87
- private fileManager;
88
- private serverManager;
89
- private results;
90
- private projectSet;
91
- private overAllStatus;
92
- private folderPath;
93
- private outputFilename;
94
- private outputPath;
95
- private dbManager;
96
- private shouldGenerateReport;
97
- private showConsoleLogs;
98
- private skipTraceViewer;
99
- private config;
100
- constructor(ortoniConfig?: OrtoniReportConfig);
101
- private reportsCount;
102
- onBegin(config: FullConfig, _suite: Suite): Promise<void>;
103
- onStdOut(chunk: string | Buffer, _test: void | TestCase, _result: void | TestResult): void;
104
- onTestEnd(test: TestCase, result: TestResult): void;
105
- printsToStdio(): boolean;
106
- onError(error: TestError): void;
107
- onEnd(result: FullResult): Promise<void>;
108
- onExit(): Promise<void>;
109
- }
110
-
111
- export { OrtoniReport, type OrtoniReportConfig, OrtoniReport as default };
File without changes
File without changes