@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 CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.5.4
2
+
3
+ Added `TESTOMATIO_CREATE=1` option to create unmatched tests on report
4
+
5
+ ```
6
+ TESTOMATIO_CREATE=1 TESTOMATIO=apiKey npx codeceptjs run
7
+ ```
8
+
1
9
  # 0.5.3
2
10
 
3
11
  * Fixed parsing suites
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "0.5.3",
3
+ "version": "0.5.4-beta.1",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "repository": "git@github.com:testomatio/reporter.git",