@testomatio/reporter 0.8.0-beta.2 → 0.8.0-beta.3
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/lib/adapter/mocha.js +1 -7
- package/package.json +4 -3
package/lib/adapter/mocha.js
CHANGED
|
@@ -11,13 +11,7 @@ function MochaReporter(runner, opts) {
|
|
|
11
11
|
let passes = 0;
|
|
12
12
|
let failures = 0;
|
|
13
13
|
|
|
14
|
-
const { apiKey
|
|
15
|
-
|
|
16
|
-
if (!apiKey) {
|
|
17
|
-
console.log('TESTOMATIO key is empty, ignoring reports');
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const client = new TestomatClient({ apiKey });
|
|
14
|
+
const client = new TestomatClient({ apiKey: opts?.reporterOptions?.apiKey });
|
|
21
15
|
|
|
22
16
|
runner.on(EVENT_RUN_BEGIN, () => {
|
|
23
17
|
client.createRun();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testomatio/reporter",
|
|
3
|
-
"version": "0.8.0-beta.
|
|
3
|
+
"version": "0.8.0-beta.3",
|
|
4
4
|
"description": "Testomatio Reporter Client",
|
|
5
5
|
"main": "./lib/reporter.js",
|
|
6
6
|
"repository": "git@github.com:testomatio/reporter.git",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"has-flag": "^5.0.1",
|
|
20
20
|
"is-valid-path": "^0.1.1",
|
|
21
21
|
"json-cycle": "^1.3.0",
|
|
22
|
-
"lodash.memoize": "^4.1.2"
|
|
22
|
+
"lodash.memoize": "^4.1.2",
|
|
23
|
+
"lodash.merge": "^4.6.2"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"bin",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"pretty": "prettier --write .",
|
|
31
32
|
"lint": "eslint lib",
|
|
32
33
|
"lint:fix": "eslint lib --fix",
|
|
33
|
-
"test": "mocha tests/**",
|
|
34
|
+
"test": "mocha tests/** -R ./lib/adapter/mocha.js",
|
|
34
35
|
"init": "cd ./tests/adapter/examples/cucumber && npm i",
|
|
35
36
|
"test:unit": "mocha tests",
|
|
36
37
|
"test:adapter": "mocha './tests/adapter/index.test.js'",
|