@dionlarson/playwright-orchestrator-pg 1.6.4 → 1.6.6
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/dist/postgresql-adapter.js +11 -2
- package/package.json +31 -31
|
@@ -224,13 +224,22 @@ export class PostgreSQLAdapter extends Adapter {
|
|
|
224
224
|
file,
|
|
225
225
|
position: `${line}:${character}`,
|
|
226
226
|
project,
|
|
227
|
-
|
|
227
|
+
// Fallback to file:line:char if test never ran (no report)
|
|
228
|
+
title: report?.title ?? `${file}:${line}:${character}`,
|
|
228
229
|
lastSuccessfulRunTimestamp: report?.lastSuccessfulRun,
|
|
229
230
|
})),
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
233
|
async updateTestWithResults(status, { runId, test, config, testResult }) {
|
|
233
|
-
|
|
234
|
+
// Use test.title (from DB) not testResult.title (from reporter)
|
|
235
|
+
// For serial suites, testResult.title may be an individual test title
|
|
236
|
+
// while test.title is the suite title we stored
|
|
237
|
+
const testId = this.getTestId({
|
|
238
|
+
project: test.project,
|
|
239
|
+
file: test.file,
|
|
240
|
+
title: test.title,
|
|
241
|
+
annotations: testResult.annotations,
|
|
242
|
+
});
|
|
234
243
|
const { rows: [testInfo], } = await this.pool.query({
|
|
235
244
|
text: `SELECT
|
|
236
245
|
id,
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"prepare": "cp ../../LICENSE.md ./"
|
|
2
|
+
"name": "@dionlarson/playwright-orchestrator-pg",
|
|
3
|
+
"version": "1.6.6",
|
|
4
|
+
"keywords": [],
|
|
5
|
+
"author": "Rostyslav Kudrevatykh",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "Playwright orchestrator PostgreSQL plugin",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/dionlarson/playwright-orchestrator-private.git"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@commander-js/extra-typings": "^13.0.0",
|
|
17
|
+
"@dionlarson/playwright-orchestrator-core": "^1.3.0",
|
|
18
|
+
"commander": "^13.0.0",
|
|
19
|
+
"pg": "^8.13.1"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/pg": "^8.11.0"
|
|
23
|
+
},
|
|
24
|
+
"main": "dist/index.js",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"default": "./dist/index.js"
|
|
33
29
|
}
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"prepare": "cp ../../LICENSE.md ./"
|
|
33
|
+
}
|
|
34
34
|
}
|