ortoni-report 3.0.5 → 4.0.1-beta.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.
Files changed (46) hide show
  1. package/changelog.md +30 -0
  2. package/dist/chunk-45EJSEX2.mjs +632 -0
  3. package/dist/chunk-75EAJL2U.mjs +632 -0
  4. package/dist/chunk-FGIYOFIC.mjs +632 -0
  5. package/dist/chunk-FHKWBHU6.mjs +633 -0
  6. package/dist/chunk-GLICR3VS.mjs +637 -0
  7. package/dist/chunk-HFO6XSKC.mjs +633 -0
  8. package/dist/chunk-HOZD6YIV.mjs +634 -0
  9. package/dist/chunk-IJO2YIFE.mjs +637 -0
  10. package/dist/chunk-INS3E7E6.mjs +638 -0
  11. package/dist/chunk-JEIWNUQY.mjs +632 -0
  12. package/dist/chunk-JPLAGYR7.mjs +632 -0
  13. package/dist/chunk-MPZLDOCN.mjs +631 -0
  14. package/dist/chunk-NM6ULN2O.mjs +632 -0
  15. package/dist/chunk-OZS6QIJS.mjs +638 -0
  16. package/dist/chunk-P57227VN.mjs +633 -0
  17. package/dist/chunk-QMTRYN5N.js +635 -0
  18. package/dist/chunk-TI33PMMQ.mjs +639 -0
  19. package/dist/chunk-Z5NBP5TS.mjs +635 -0
  20. package/dist/cli/cli.cjs +678 -0
  21. package/dist/cli/cli.d.cts +1 -0
  22. package/dist/cli/cli.js +609 -18
  23. package/dist/cli/cli.mjs +89 -9
  24. package/dist/index.html +21 -0
  25. package/dist/ortoni-report.cjs +2134 -0
  26. package/dist/ortoni-report.d.cts +111 -0
  27. package/dist/ortoni-report.d.mts +3 -12
  28. package/dist/ortoni-report.d.ts +3 -12
  29. package/dist/ortoni-report.js +201 -326
  30. package/dist/ortoni-report.mjs +78 -746
  31. package/package.json +4 -5
  32. package/readme.md +26 -33
  33. package/dist/chunk-AY2PKDHU.mjs +0 -69
  34. package/dist/chunk-OOALU4XG.mjs +0 -72
  35. package/dist/chunk-ZSIRUQUA.mjs +0 -68
  36. package/dist/style/main.css +0 -80
  37. package/dist/views/analytics.hbs +0 -103
  38. package/dist/views/head.hbs +0 -11
  39. package/dist/views/main.hbs +0 -1295
  40. package/dist/views/project.hbs +0 -238
  41. package/dist/views/sidebar.hbs +0 -244
  42. package/dist/views/summaryCard.hbs +0 -15
  43. package/dist/views/testIcons.hbs +0 -13
  44. package/dist/views/testPanel.hbs +0 -45
  45. package/dist/views/testStatus.hbs +0 -9
  46. package/dist/views/userInfo.hbs +0 -260
@@ -1,103 +0,0 @@
1
- <h1 class="title is-3">Analytics</h1>
2
- <div class="columns is-multiline has-text-centered">
3
- {{> summaryCard bg="hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)) !important"
4
- statusHeader="Total Runs" statusCount=reportAnalyticsData.summary.totalRuns}}
5
- {{> summaryCard bg="hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)) !important"
6
- statusHeader="Total Tests" statusCount=reportAnalyticsData.summary.totalTests}}
7
- {{> summaryCard bg="hsl(var(--bulma-success-h), var(--bulma-success-s), var(--bulma-success-l)) !important"
8
- status="Passed" statusHeader="Passed" statusCount=reportAnalyticsData.summary.passed}}
9
- {{> summaryCard bg="hsl(var(--bulma-danger-h), var(--bulma-danger-s), var(--bulma-danger-l)) !important"
10
- status="Failed"
11
- statusHeader="Failed" statusCount=reportAnalyticsData.summary.failed}}
12
- {{> summaryCard bg="hsl(var(--bulma-info-h), var(--bulma-info-s), var(--bulma-info-l)) !important"
13
- statusHeader="Pass Rate: %" statusCount=reportAnalyticsData.summary.passRate}}
14
- {{> summaryCard bg="#69748c" statusHeader="Avg Duration (ms)" statusCount=reportAnalyticsData.summary.avgDuration}}
15
- </div>
16
-
17
- <section class="box">
18
- <h2 class="title is-4">Trends Over Time</h2>
19
- <canvas id="trendChart" height="100"></canvas>
20
- </section>
21
-
22
- <section class="box">
23
- <h2 class="title is-4">Top Flaky Tests</h2>
24
- <table class="table is-striped is-fullwidth">
25
- <thead>
26
- <tr>
27
- <th>Test ID</th>
28
- </tr>
29
- </thead>
30
- <tbody>
31
- {{#each reportAnalyticsData.flakyTests}}
32
- <tr>
33
- <td>{{this.test_id}}</td>
34
- </tr>
35
- {{/each}}
36
- </tbody>
37
- </table>
38
- </section>
39
-
40
- <section class="box">
41
- <h2 class="title is-4">Slowest Tests</h2>
42
- <table class="table is-striped is-fullwidth">
43
- <thead>
44
- <tr>
45
- <th>Test ID</th>
46
- <th>Avg Duration (ms)</th>
47
- </tr>
48
- </thead>
49
- <tbody>
50
- {{#each reportAnalyticsData.slowTests}}
51
- <tr>
52
- <td>{{this.test_id}}</td>
53
- <td>{{this.avg_duration}}</td>
54
- </tr>
55
- {{/each}}
56
- </tbody>
57
- </table>
58
- </section>
59
- <script>
60
- const ctx = document.getElementById('trendChart').getContext('2d');
61
- const trendChart = new Chart(ctx, {
62
- type: 'line',
63
- data: {
64
- labels: {{{ json chartData.labels }}},
65
- datasets: [
66
- {
67
- label: 'Passed',
68
- data: {{ json chartData.passed }},
69
- borderColor: 'green',
70
- fill: false
71
- },
72
- {
73
- label: 'Failed',
74
- data: {{ json chartData.failed }},
75
- borderColor: 'red',
76
- fill: false
77
- },
78
- {
79
- label: 'Avg Duration (ms)',
80
- data: {{ json chartData.avgDuration }},
81
- borderColor: 'blue',
82
- fill: false,
83
- yAxisID: 'y1'
84
- }
85
- ]
86
- },
87
- options: {
88
- responsive: true,
89
- scales: {
90
- y: {
91
- beginAtZero: true,
92
- title: { display: true, text: 'Count' }
93
- },
94
- y1: {
95
- beginAtZero: true,
96
- position: 'right',
97
- title: { display: true, text: 'Duration (ms)' },
98
- grid: { drawOnChartArea: false }
99
- }
100
- }
101
- }
102
- });
103
- </script>
@@ -1,11 +0,0 @@
1
- <head>
2
- <meta charset="UTF-8" />
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
4
- <meta name="description" content="Ortoni Report - V3.0.5" />
5
- <title>{{title}}</title>
6
- <link rel="icon" href="https://raw.githubusercontent.com/ortoniKC/ortoni-report/refs/heads/main/favicon.png"
7
- type="image/x-icon" />
8
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
9
- integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
10
- crossorigin="anonymous" referrerpolicy="no-referrer" />
11
- </head>