@browsermation/test 0.0.63-beta.12 → 0.0.63-beta.13

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.
Files changed (2) hide show
  1. package/dist/reporter.js +9 -8
  2. package/package.json +1 -1
package/dist/reporter.js CHANGED
@@ -162,7 +162,6 @@ var BrowsermationReporter = class {
162
162
  git_commit_message: await this.getLatestCommitMessage(),
163
163
  git_remote_origin_url: await this.gitRemoteOriginUrl(),
164
164
  totalTests: suite.allTests().length,
165
- cpus: (0, import_node_os.cpus)().length,
166
165
  playwright_version: _config.version,
167
166
  node_version: process.version
168
167
  };
@@ -178,11 +177,10 @@ var BrowsermationReporter = class {
178
177
  const data = {
179
178
  type: "end",
180
179
  suite_run_id: this.suiteRunId,
181
- startTime: result.startTime,
182
- duration: result.duration,
180
+ start_time: result.startTime,
181
+ duration_in_ms: result.duration,
183
182
  status: result.status,
184
- timestamp: Date.now(),
185
- hostname: (0, import_node_os.hostname)()
183
+ timestamp: Date.now()
186
184
  };
187
185
  this.log(`${JSON.stringify(data)}
188
186
  `);
@@ -197,7 +195,9 @@ var BrowsermationReporter = class {
197
195
  timestamp: Date.now(),
198
196
  free_memory: (0, import_node_os.freemem)(),
199
197
  total_memory: (0, import_node_os.totalmem)(),
200
- project: test.parent.project.name
198
+ cpus: (0, import_node_os.cpus)().length,
199
+ project: test.parent.project.name,
200
+ cpu_architecture: process.arch
201
201
  };
202
202
  this.log(`${JSON.stringify(data)}
203
203
  `);
@@ -209,13 +209,14 @@ var BrowsermationReporter = class {
209
209
  suite_run_id: this.suiteRunId,
210
210
  type: "test-end",
211
211
  title: test.title,
212
- titlePath: test.titlePath,
212
+ title_path: test.titlePath,
213
213
  status: result.status,
214
214
  duration: result.duration,
215
215
  errors: stripAnsi(result.error?.message || ""),
216
216
  timestamp: Date.now(),
217
217
  free_memory: (0, import_node_os.freemem)(),
218
- total_memory: (0, import_node_os.totalmem)()
218
+ total_memory: (0, import_node_os.totalmem)(),
219
+ cpu_architecture: process.arch
219
220
  };
220
221
  this.log(`${JSON.stringify(data)}
221
222
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browsermation/test",
3
- "version": "0.0.63-beta.12",
3
+ "version": "0.0.63-beta.13",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",