@testim/testim-cli 3.224.0 → 3.227.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.
- package/codim/codim-npm-package/package.json +1 -1
- package/codim/template.js/package.json +1 -1
- package/codim/template.ts/package.json +2 -2
- package/commons/testimDesiredCapabilitiesBuilder.js +1 -0
- package/npm-shrinkwrap.json +1077 -1544
- package/package.json +22 -22
- package/services/gridService.js +20 -1
- package/testRunHandler.js +491 -486
- package/testRunStatus.js +5 -3
- package/workers/BaseWorker.js +7 -7
- package/workers/BaseWorker.test.js +37 -3
- package/workers/WorkerExtensionSingleBrowser.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testim/testim-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.227.0",
|
|
4
4
|
"description": "Command line interface for running Testing on your CI",
|
|
5
5
|
"author": "Oren Rubin",
|
|
6
6
|
"contributors": [{
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@types/bluebird": "3.5.32",
|
|
15
|
-
"@types/fs-extra": "
|
|
15
|
+
"@types/fs-extra": "9.0.13",
|
|
16
16
|
"@types/ms": "0.7.31",
|
|
17
17
|
"@types/node": "10.17.24",
|
|
18
18
|
"@types/selenium-webdriver": "4.0.9",
|
|
19
19
|
"bundle-deps": "1.0.0",
|
|
20
|
-
"chai": "4.3.
|
|
20
|
+
"chai": "4.3.6",
|
|
21
21
|
"chai-as-promised": "7.1.1",
|
|
22
22
|
"gulp": "4.0.2",
|
|
23
23
|
"gulp-cli": "2.3.0",
|
|
24
|
-
"gulp-json-editor": "2.5.
|
|
24
|
+
"gulp-json-editor": "2.5.6",
|
|
25
25
|
"gulp-preprocess": "3.0.3",
|
|
26
26
|
"merge-stream": "2.0.0",
|
|
27
27
|
"mocha": "9.2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sinon-chai": "3.7.0",
|
|
33
33
|
"ts-node": "9.1.1",
|
|
34
34
|
"tsconfig-paths": "3.12.0",
|
|
35
|
-
"typescript": "4.
|
|
35
|
+
"typescript": "4.6.2"
|
|
36
36
|
},
|
|
37
37
|
"lazyDependencies": {
|
|
38
38
|
"ngrok": "3.4.0",
|
|
@@ -44,40 +44,40 @@
|
|
|
44
44
|
"istanbul-lib-coverage": "3.0.0",
|
|
45
45
|
"@bcoe/v8-coverage": "0.2.3",
|
|
46
46
|
"convert-source-map": "1.7.0",
|
|
47
|
-
"multer": "1.4.
|
|
47
|
+
"multer": "1.4.4"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@applitools/eyes-sdk-core": "13.0.
|
|
51
|
-
"@applitools/visual-grid-client": "15.
|
|
50
|
+
"@applitools/eyes-sdk-core": "13.0.6",
|
|
51
|
+
"@applitools/visual-grid-client": "15.9.0",
|
|
52
52
|
"@testim/coralogix-logger": "1.1.27-beta.1",
|
|
53
53
|
"@testim/webdriverio": "0.0.5",
|
|
54
54
|
"abort-controller": "3.0.0",
|
|
55
55
|
"ajv": "6.12.6",
|
|
56
56
|
"analytics-node": "5.0.0",
|
|
57
57
|
"appium-dom-utils": "1.0.6",
|
|
58
|
-
"archiver": "3.
|
|
58
|
+
"archiver": "5.3.0",
|
|
59
59
|
"bluebird": "3.7.2",
|
|
60
60
|
"bluebird-retry": "0.11.0",
|
|
61
61
|
"body-parser": "1.19.1",
|
|
62
|
-
"chalk": "4.1.
|
|
63
|
-
"chrome-launcher": "0.
|
|
62
|
+
"chalk": "4.1.2",
|
|
63
|
+
"chrome-launcher": "0.15.0",
|
|
64
64
|
"combine-source-map": "0.8.0",
|
|
65
65
|
"commander": "2.9.0",
|
|
66
66
|
"compression": "1.7.4",
|
|
67
67
|
"cors": "2.8.5",
|
|
68
|
-
"crypto-js": "4.
|
|
68
|
+
"crypto-js": "4.1.1",
|
|
69
69
|
"data-uri-to-buffer": "2.0.2",
|
|
70
70
|
"decompress": "4.2.1",
|
|
71
|
-
"express": "4.17.
|
|
71
|
+
"express": "4.17.3",
|
|
72
72
|
"find-root": "1.1.0",
|
|
73
|
-
"fkill": "7.
|
|
73
|
+
"fkill": "7.2.1",
|
|
74
74
|
"form-data": "3.0.0",
|
|
75
|
-
"fs-extra": "
|
|
76
|
-
"glob": "7.
|
|
75
|
+
"fs-extra": "10.0.1",
|
|
76
|
+
"glob": "7.2.0",
|
|
77
77
|
"istanbul-lib-report": "3.0.0",
|
|
78
78
|
"istanbul-reports": "3.0.2",
|
|
79
79
|
"jimp": "0.16.1",
|
|
80
|
-
"jsdom": "
|
|
80
|
+
"jsdom": "19.0.0",
|
|
81
81
|
"jsonwebtoken": "8.5.1",
|
|
82
82
|
"lodash": "4.17.21",
|
|
83
83
|
"memory-fs": "0.5.0",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"moment": "2.25.3",
|
|
87
87
|
"ms": "2.1.2",
|
|
88
88
|
"npm": "8.3.0",
|
|
89
|
-
"object-hash": "
|
|
90
|
-
"ora": "4.
|
|
89
|
+
"object-hash": "3.0.0",
|
|
90
|
+
"ora": "5.4.1",
|
|
91
91
|
"pako": "1.0.11",
|
|
92
92
|
"portfinder": "1.0.28",
|
|
93
93
|
"promise-queue": "2.2.5",
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
"threads": "0.12.0",
|
|
104
104
|
"ua-parser-js": "0.7.28",
|
|
105
105
|
"validate-npm-package-name": "3.0.0",
|
|
106
|
-
"winston": "3.
|
|
107
|
-
"winston-transport": "4.
|
|
108
|
-
"ws": "8.
|
|
106
|
+
"winston": "3.6.0",
|
|
107
|
+
"winston-transport": "4.5.0",
|
|
108
|
+
"ws": "8.5.0",
|
|
109
109
|
"xml2js": "0.4.23",
|
|
110
110
|
"yaml": "1.10.0"
|
|
111
111
|
},
|
package/services/gridService.js
CHANGED
|
@@ -236,7 +236,26 @@ function getOptionGrid(options) {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
async function getTestPlanGridData(options, testPlanData) {
|
|
239
|
-
|
|
239
|
+
const companyId = options.company.companyId;
|
|
240
|
+
try {
|
|
241
|
+
return await getGridDataByGridId(companyId, testPlanData.gridId, options.allGrids);
|
|
242
|
+
} catch (err) {
|
|
243
|
+
if (err instanceof ArgError) {
|
|
244
|
+
// this is a fallback to an old behavior that is wrong,
|
|
245
|
+
// we should remove it in the future
|
|
246
|
+
const testPlanDatas = await servicesApi.getTestPlan(options.project, options.testPlan);
|
|
247
|
+
if (testPlanDatas.length === 0) {
|
|
248
|
+
throw new ArgError(`no test plan to run ${options.testPlan}`);
|
|
249
|
+
}
|
|
250
|
+
const testPlanGrids = testPlanDatas.map(d => options.allGrids.find(grid => grid._id === d.gridId));
|
|
251
|
+
if (testPlanGrids.includes(undefined)) {
|
|
252
|
+
throw new ArgError('failed to find one of the test plan defined grid');
|
|
253
|
+
}
|
|
254
|
+
logger.warn('getTestPlanGridData used fallback and might cause test plans run on a unintended grid', { companyId });
|
|
255
|
+
return getSerializableObject(_.first(testPlanGrids));
|
|
256
|
+
}
|
|
257
|
+
throw err;
|
|
258
|
+
}
|
|
240
259
|
}
|
|
241
260
|
|
|
242
261
|
async function getGridData(options) {
|