@wdio/testingbot-service 8.0.10 → 8.0.14
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/build/service.js +6 -6
- package/package.json +4 -4
package/build/service.js
CHANGED
|
@@ -180,11 +180,11 @@ export default class TestingBotService {
|
|
|
180
180
|
return `https://api.testingbot.com/v1/tests/${sessionId}`;
|
|
181
181
|
}
|
|
182
182
|
getBody(failures, calledOnReload = false, browserName) {
|
|
183
|
-
|
|
183
|
+
const body = { test: {} };
|
|
184
184
|
/**
|
|
185
185
|
* set default values
|
|
186
186
|
*/
|
|
187
|
-
body.test
|
|
187
|
+
body.test.name = this._suiteTitle;
|
|
188
188
|
/**
|
|
189
189
|
* add reload count to title if reload is used
|
|
190
190
|
*/
|
|
@@ -193,18 +193,18 @@ export default class TestingBotService {
|
|
|
193
193
|
if (this._browser.isMultiremote) {
|
|
194
194
|
testCnt = Math.ceil(testCnt / this._browser.instances.length);
|
|
195
195
|
}
|
|
196
|
-
body.test
|
|
196
|
+
body.test.name += ` (${testCnt})`;
|
|
197
197
|
}
|
|
198
|
-
for (
|
|
198
|
+
for (const prop of jobDataProperties) {
|
|
199
199
|
if (!this._capabilities[prop]) {
|
|
200
200
|
continue;
|
|
201
201
|
}
|
|
202
202
|
body.test[prop] = this._capabilities[prop];
|
|
203
203
|
}
|
|
204
204
|
if (browserName) {
|
|
205
|
-
body.test
|
|
205
|
+
body.test.name = `${browserName}: ${body.test.name}`;
|
|
206
206
|
}
|
|
207
|
-
body.test
|
|
207
|
+
body.test.success = failures === 0 ? '1' : '0';
|
|
208
208
|
return body;
|
|
209
209
|
}
|
|
210
210
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/testingbot-service",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.14",
|
|
4
4
|
"description": "A WebdriverIO service that provides a better integration into TestingBot",
|
|
5
5
|
"author": "Jochen Delabie <info@testingbot.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-testingbot-service",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"types": "./build/index.d.ts",
|
|
28
28
|
"typeScriptVersion": "3.8.3",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@wdio/logger": "8.0.
|
|
31
|
-
"@wdio/types": "8.0.
|
|
30
|
+
"@wdio/logger": "8.0.14",
|
|
31
|
+
"@wdio/types": "8.0.14",
|
|
32
32
|
"got": "^12.1.0",
|
|
33
33
|
"testingbot-tunnel-launcher": "^1.1.7",
|
|
34
34
|
"webdriverio": "8.0.2"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ab58bc79c1df2e146d02a68ee444766ec371e6d2"
|
|
43
43
|
}
|