@testomatio/reporter 0.5.3 → 0.5.4-beta.1
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/Changelog.md +8 -0
- package/lib/adapter/cypress-plugin/index.js +4 -0
- package/lib/client.js +2 -0
- package/package.json +1 -1
package/Changelog.md
CHANGED
|
@@ -6,6 +6,10 @@ const testomatioReporter = on => {
|
|
|
6
6
|
const client = new TestomatClient({ apiKey: process.env.TESTOMATIO });
|
|
7
7
|
|
|
8
8
|
on('before:run', async () => {
|
|
9
|
+
if (!client.title) {
|
|
10
|
+
client.title = `${run.config.projectName} tests @${run.browser.displayName} @${run.system.osName}`
|
|
11
|
+
if (client.title.includes('undefined')) delete client.title;
|
|
12
|
+
}
|
|
9
13
|
await client.createRun();
|
|
10
14
|
});
|
|
11
15
|
|
package/lib/client.js
CHANGED
|
@@ -24,6 +24,7 @@ class TestomatClient {
|
|
|
24
24
|
constructor(params) {
|
|
25
25
|
this.apiKey = params.apiKey || process.env.TESTOMATIO;
|
|
26
26
|
this.title = params.title || process.env.TESTOMATIO_TITLE;
|
|
27
|
+
this.createNewTests = !!process.env.TESTOMATIO_CREATE
|
|
27
28
|
this.parallel = params.parallel;
|
|
28
29
|
this.runId = process.env.runId;
|
|
29
30
|
this.queue = Promise.resolve();
|
|
@@ -142,6 +143,7 @@ class TestomatClient {
|
|
|
142
143
|
|
|
143
144
|
const json = JsonCycle.stringify({
|
|
144
145
|
api_key: this.apiKey,
|
|
146
|
+
create: this.createNewTests,
|
|
145
147
|
files,
|
|
146
148
|
steps,
|
|
147
149
|
status,
|