overall-quality-dashboard 1.3.0 → 1.3.1
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/README.md +1 -0
- package/package.json +1 -1
- package/qa_dash.py +1 -1
- package/reporter.js +4 -0
package/README.md
CHANGED
|
@@ -67,6 +67,7 @@ or open `qa-dashboard/dist/qa-dashboard.html`, the single file to share.
|
|
|
67
67
|
| `branch` | from the CI, else git | the branch the run is filed under (only `baselineBranch` runs count) |
|
|
68
68
|
|
|
69
69
|
- The run is recorded with retries, flaky results and every error, keyed like a `results.json` from CI, so both can feed the same dashboard.
|
|
70
|
+
- Runs that were interrupted, or where no test ran (`--list`, everything skipped), are not added.
|
|
70
71
|
- Sharded runs are skipped shard by shard: add the merged run once with `npx playwright merge-reports --config playwright.config.ts <blob-report folder>`.
|
|
71
72
|
- In CI the history must survive between runs, or every run starts a new dashboard. With GitHub Actions:
|
|
72
73
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "overall-quality-dashboard",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Playwright reporter that keeps a QA dashboard up to date after every run: health score, trends, flaky tests, failure clusters, Jira bugs, Notion coverage. Open it when you need it.",
|
|
5
5
|
"main": "reporter.js",
|
|
6
6
|
"bin": {
|
package/qa_dash.py
CHANGED
|
@@ -31,7 +31,7 @@ from collections import Counter, defaultdict
|
|
|
31
31
|
from datetime import datetime, timedelta, timezone
|
|
32
32
|
from pathlib import Path
|
|
33
33
|
|
|
34
|
-
VERSION = "1.3.
|
|
34
|
+
VERSION = "1.3.1"
|
|
35
35
|
ROOT = Path(__file__).resolve().parent
|
|
36
36
|
DATA = Path(os.environ.get("QA_DASH_DATA", ROOT / "data"))
|
|
37
37
|
HIST = DATA / "history"
|
package/reporter.js
CHANGED
|
@@ -77,6 +77,10 @@ class QaDashboardReporter {
|
|
|
77
77
|
async onEnd(result) {
|
|
78
78
|
const say = msg => console.log(`[qa-dashboard] ${msg}`);
|
|
79
79
|
try {
|
|
80
|
+
const tests = this.root.allTests();
|
|
81
|
+
if (result.status === 'interrupted' || !tests.some(t => t.results.some(x => x.status !== 'skipped'))) { // stopped, or nothing ran (--list)
|
|
82
|
+
return say(`${result.status === 'interrupted' ? 'the run was interrupted' : 'no test ran'}: not added.`);
|
|
83
|
+
}
|
|
80
84
|
if (this.config.shard) { // each shard holds part of the run: the merged report is the run
|
|
81
85
|
return say('sharded run: not added. Add the whole run once the shards are merged: npx playwright merge-reports --config <your playwright config> <blob-report folder>');
|
|
82
86
|
}
|