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

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 +12 -4
  2. package/package.json +1 -1
package/dist/reporter.js CHANGED
@@ -155,7 +155,6 @@ var BrowsermationReporter = class {
155
155
  const data = {
156
156
  type: "begin",
157
157
  timestamp: Date.now(),
158
- hostname: (0, import_node_os.hostname)(),
159
158
  git_branch: await this.getCurrentBranch(),
160
159
  git_repo: await this.getCurrentRepo(),
161
160
  git_commit_id: await this.getLatestCommitId(),
@@ -192,12 +191,14 @@ var BrowsermationReporter = class {
192
191
  type: "test-start",
193
192
  title: test.title,
194
193
  file: test.location.file,
194
+ hostname: (0, import_node_os.hostname)(),
195
195
  timestamp: Date.now(),
196
196
  free_memory: (0, import_node_os.freemem)(),
197
197
  total_memory: (0, import_node_os.totalmem)(),
198
198
  cpus: (0, import_node_os.cpus)().length,
199
199
  project: test.parent.project.name,
200
- cpu_architecture: process.arch
200
+ cpu_architecture: process.arch,
201
+ retries: test.retries
201
202
  };
202
203
  this.log(`${JSON.stringify(data)}
203
204
  `);
@@ -210,13 +211,20 @@ var BrowsermationReporter = class {
210
211
  type: "test-end",
211
212
  title: test.title,
212
213
  title_path: test.titlePath,
214
+ result: result.status,
213
215
  status: result.status,
214
- duration: result.duration,
216
+ duration_in_ms: result.duration,
215
217
  errors: stripAnsi(result.error?.message || ""),
216
218
  timestamp: Date.now(),
217
219
  free_memory: (0, import_node_os.freemem)(),
218
220
  total_memory: (0, import_node_os.totalmem)(),
219
- cpu_architecture: process.arch
221
+ cpu_architecture: process.arch,
222
+ cpus: (0, import_node_os.cpus)().length,
223
+ hostname: (0, import_node_os.hostname)(),
224
+ retries: test.retries,
225
+ retry_attempt: result.retry,
226
+ stderr: result.stderr.map((s) => stripAnsi(s.toString())).join("\n"),
227
+ stdout: result.stdout.map((s) => stripAnsi(s.toString())).join("\n")
220
228
  };
221
229
  this.log(`${JSON.stringify(data)}
222
230
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browsermation/test",
3
- "version": "0.0.63-beta.13",
3
+ "version": "0.0.63-beta.14",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",