@wdio/testingbot-service 8.0.11 → 8.1.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/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/launcher.d.ts +1 -1
- package/build/launcher.d.ts.map +1 -1
- package/build/service.d.ts +1 -1
- package/build/service.d.ts.map +1 -1
- package/build/service.js +6 -6
- package/package.json +4 -4
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import TestingBotLauncher from './launcher.js';
|
|
2
2
|
import TestingBotService from './service.js';
|
|
3
|
-
import type { TestingbotOptions } from './types';
|
|
3
|
+
import type { TestingbotOptions } from './types.js';
|
|
4
4
|
export default TestingBotService;
|
|
5
5
|
export declare const launcher: typeof TestingBotLauncher;
|
|
6
6
|
export * from './types.js';
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,MAAM,eAAe,CAAA;AAC9C,OAAO,iBAAiB,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,MAAM,eAAe,CAAA;AAC9C,OAAO,iBAAiB,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,eAAe,iBAAiB,CAAA;AAChC,eAAO,MAAM,QAAQ,2BAAqB,CAAA;AAC1C,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,iBAAiB;SAAG;KACvD;CACJ"}
|
package/build/launcher.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Capabilities, Options, Services } from '@wdio/types';
|
|
2
|
-
import type { TestingbotOptions, TestingbotTunnel, TunnelLauncherOptions } from './types';
|
|
2
|
+
import type { TestingbotOptions, TestingbotTunnel, TunnelLauncherOptions } from './types.js';
|
|
3
3
|
export default class TestingBotLauncher implements Services.ServiceInstance {
|
|
4
4
|
options: TestingbotOptions;
|
|
5
5
|
tbTunnelOpts: TunnelLauncherOptions;
|
package/build/launcher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAElE,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAElE,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAI5F,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,QAAQ,CAAC,eAAe;IACvE,OAAO,EAAE,iBAAiB,CAAA;IAC1B,YAAY,EAAG,qBAAqB,CAAA;IACpC,MAAM,CAAC,EAAE,gBAAgB,CAAA;gBACZ,OAAO,EAAE,iBAAiB;IAIjC,SAAS,CAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,kBAAkB;IA2C1F;;;OAGG;IACH,UAAU;CAOb"}
|
package/build/service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Capabilities, Options, Services, Frameworks } from '@wdio/types';
|
|
2
2
|
import type { Browser, MultiRemoteBrowser } from 'webdriverio';
|
|
3
|
-
import type { TestingbotOptions } from './types';
|
|
3
|
+
import type { TestingbotOptions } from './types.js';
|
|
4
4
|
export default class TestingBotService implements Services.ServiceInstance {
|
|
5
5
|
private _options;
|
|
6
6
|
private _capabilities;
|
package/build/service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAKnD,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,QAAQ,CAAC,eAAe;IAUlE,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,OAAO;IAXnB,OAAO,CAAC,QAAQ,CAAC,CAAgD;IACjE,OAAO,CAAC,iBAAiB,CAAC,CAAS;IACnC,OAAO,CAAC,WAAW,CAAC,CAAQ;IAC5B,OAAO,CAAC,SAAS,CAAC,CAAQ;IAC1B,OAAO,CAAC,OAAO,CAAC,CAAQ;IACxB,OAAO,CAAC,SAAS,CAAI;IACrB,OAAO,CAAC,QAAQ,CAAI;gBAGR,QAAQ,EAAE,iBAAiB,EAC3B,aAAa,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+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.1.0",
|
|
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.
|
|
31
|
-
"@wdio/types": "8.0
|
|
30
|
+
"@wdio/logger": "8.1.0",
|
|
31
|
+
"@wdio/types": "8.1.0",
|
|
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": "f505134606f99129c816acb00f22e39032e60820"
|
|
43
43
|
}
|