@alternative-path/testlens-playwright-reporter 0.4.10 → 0.4.11
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/index.js +1540 -1538
- package/index.ts +4 -0
- package/package.json +75 -75
package/index.ts
CHANGED
|
@@ -8,6 +8,9 @@ import type { Reporter, TestCase, TestResult, FullConfig, Suite } from '@playwri
|
|
|
8
8
|
import { execSync } from 'child_process';
|
|
9
9
|
import pino from 'pino';
|
|
10
10
|
|
|
11
|
+
const TESTLENS_X_WORKFLOW_AUTH =
|
|
12
|
+
'd5f8f1d1a4546e9b49dcedbe51f483aca4bb0e2357b513082b0ce49e59583d38';
|
|
13
|
+
|
|
11
14
|
/**
|
|
12
15
|
* Logger class for TestLens Reporter with 2-level logging support
|
|
13
16
|
* - 'info' level: Shows test start/completion with status, artifact status, and errors
|
|
@@ -515,6 +518,7 @@ export class TestLensReporter implements Reporter {
|
|
|
515
518
|
timeout: this.config.timeout,
|
|
516
519
|
headers: {
|
|
517
520
|
'Content-Type': 'application/json',
|
|
521
|
+
'x-workflow-auth': TESTLENS_X_WORKFLOW_AUTH,
|
|
518
522
|
...(this.config.apiKey && { 'X-API-Key': this.config.apiKey }),
|
|
519
523
|
},
|
|
520
524
|
// Enhanced SSL handling with flexible TLS configuration
|
package/package.json
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@alternative-path/testlens-playwright-reporter",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Universal Playwright reporter for TestLens - works with both TypeScript and JavaScript projects",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
7
|
-
"bin": {
|
|
8
|
-
"testlensreporter": "cross-env.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"index.js",
|
|
12
|
-
"index.d.ts",
|
|
13
|
-
"index.ts",
|
|
14
|
-
"lib/",
|
|
15
|
-
"postinstall.js",
|
|
16
|
-
"cross-env.js",
|
|
17
|
-
"README.md",
|
|
18
|
-
"CHANGELOG.md"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"postinstall": "node postinstall.js",
|
|
22
|
-
"prepack": "node build-embed-env.js",
|
|
23
|
-
"prepublishOnly": "npm run lint && npm run test",
|
|
24
|
-
"test": "echo 'Tests will be added in future versions'",
|
|
25
|
-
"lint": "echo 'Linting passed - no linter configured yet'",
|
|
26
|
-
"build": "tsc",
|
|
27
|
-
"dev": "node index.js"
|
|
28
|
-
},
|
|
29
|
-
"keywords": [
|
|
30
|
-
"playwright",
|
|
31
|
-
"reporter",
|
|
32
|
-
"testing",
|
|
33
|
-
"testlens",
|
|
34
|
-
"typescript",
|
|
35
|
-
"javascript",
|
|
36
|
-
"e2e",
|
|
37
|
-
"automation",
|
|
38
|
-
"ci-cd",
|
|
39
|
-
"dashboard",
|
|
40
|
-
"test-reporting"
|
|
41
|
-
],
|
|
42
|
-
"author": {
|
|
43
|
-
"name": "TestLens Team",
|
|
44
|
-
"email": "support@alternative-path.com",
|
|
45
|
-
"url": "https://testlens.qa-path.com"
|
|
46
|
-
},
|
|
47
|
-
"license": "MIT",
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"@playwright/test": ">=1.40.0"
|
|
50
|
-
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"@aws-sdk/client-s3": "^3.624.0",
|
|
53
|
-
"@aws-sdk/s3-request-presigner": "^3.624.0",
|
|
54
|
-
"adm-zip": "^0.5.16",
|
|
55
|
-
"axios": "^1.11.0",
|
|
56
|
-
"cross-env": "^7.0.3",
|
|
57
|
-
"dotenv": "^16.4.5",
|
|
58
|
-
"form-data": "^4.0.1",
|
|
59
|
-
"mime": "^4.0.4",
|
|
60
|
-
"pino": "^9.0.0",
|
|
61
|
-
"tslib": "^2.8.1"
|
|
62
|
-
},
|
|
63
|
-
"engines": {
|
|
64
|
-
"node": ">=
|
|
65
|
-
"npm": ">=8.0.0"
|
|
66
|
-
},
|
|
67
|
-
"publishConfig": {
|
|
68
|
-
"access": "public",
|
|
69
|
-
"registry": "https://registry.npmjs.org/"
|
|
70
|
-
},
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@types/node": "^24.3.1",
|
|
73
|
-
"typescript": "^5.9.2"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@alternative-path/testlens-playwright-reporter",
|
|
3
|
+
"version": "0.4.11",
|
|
4
|
+
"description": "Universal Playwright reporter for TestLens - works with both TypeScript and JavaScript projects",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"testlensreporter": "cross-env.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js",
|
|
12
|
+
"index.d.ts",
|
|
13
|
+
"index.ts",
|
|
14
|
+
"lib/",
|
|
15
|
+
"postinstall.js",
|
|
16
|
+
"cross-env.js",
|
|
17
|
+
"README.md",
|
|
18
|
+
"CHANGELOG.md"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"postinstall": "node postinstall.js",
|
|
22
|
+
"prepack": "node build-embed-env.js",
|
|
23
|
+
"prepublishOnly": "npm run lint && npm run test",
|
|
24
|
+
"test": "echo 'Tests will be added in future versions'",
|
|
25
|
+
"lint": "echo 'Linting passed - no linter configured yet'",
|
|
26
|
+
"build": "tsc",
|
|
27
|
+
"dev": "node index.js"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"playwright",
|
|
31
|
+
"reporter",
|
|
32
|
+
"testing",
|
|
33
|
+
"testlens",
|
|
34
|
+
"typescript",
|
|
35
|
+
"javascript",
|
|
36
|
+
"e2e",
|
|
37
|
+
"automation",
|
|
38
|
+
"ci-cd",
|
|
39
|
+
"dashboard",
|
|
40
|
+
"test-reporting"
|
|
41
|
+
],
|
|
42
|
+
"author": {
|
|
43
|
+
"name": "TestLens Team",
|
|
44
|
+
"email": "support@alternative-path.com",
|
|
45
|
+
"url": "https://testlens.qa-path.com"
|
|
46
|
+
},
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@playwright/test": ">=1.40.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@aws-sdk/client-s3": "^3.624.0",
|
|
53
|
+
"@aws-sdk/s3-request-presigner": "^3.624.0",
|
|
54
|
+
"adm-zip": "^0.5.16",
|
|
55
|
+
"axios": "^1.11.0",
|
|
56
|
+
"cross-env": "^7.0.3",
|
|
57
|
+
"dotenv": "^16.4.5",
|
|
58
|
+
"form-data": "^4.0.1",
|
|
59
|
+
"mime": "^4.0.4",
|
|
60
|
+
"pino": "^9.0.0",
|
|
61
|
+
"tslib": "^2.8.1"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=20.0.0",
|
|
65
|
+
"npm": ">=8.0.0"
|
|
66
|
+
},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public",
|
|
69
|
+
"registry": "https://registry.npmjs.org/"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@types/node": "^24.3.1",
|
|
73
|
+
"typescript": "^5.9.2"
|
|
74
|
+
}
|
|
75
|
+
}
|