@browsermation/test 0.0.63-beta.12 → 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 +19 -10
  2. package/package.json +1 -1
package/dist/reporter.js CHANGED
@@ -155,14 +155,12 @@ 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(),
162
161
  git_commit_message: await this.getLatestCommitMessage(),
163
162
  git_remote_origin_url: await this.gitRemoteOriginUrl(),
164
163
  totalTests: suite.allTests().length,
165
- cpus: (0, import_node_os.cpus)().length,
166
164
  playwright_version: _config.version,
167
165
  node_version: process.version
168
166
  };
@@ -178,11 +176,10 @@ var BrowsermationReporter = class {
178
176
  const data = {
179
177
  type: "end",
180
178
  suite_run_id: this.suiteRunId,
181
- startTime: result.startTime,
182
- duration: result.duration,
179
+ start_time: result.startTime,
180
+ duration_in_ms: result.duration,
183
181
  status: result.status,
184
- timestamp: Date.now(),
185
- hostname: (0, import_node_os.hostname)()
182
+ timestamp: Date.now()
186
183
  };
187
184
  this.log(`${JSON.stringify(data)}
188
185
  `);
@@ -194,10 +191,14 @@ var BrowsermationReporter = class {
194
191
  type: "test-start",
195
192
  title: test.title,
196
193
  file: test.location.file,
194
+ hostname: (0, import_node_os.hostname)(),
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
+ retries: test.retries
201
202
  };
202
203
  this.log(`${JSON.stringify(data)}
203
204
  `);
@@ -209,13 +210,21 @@ var BrowsermationReporter = class {
209
210
  suite_run_id: this.suiteRunId,
210
211
  type: "test-end",
211
212
  title: test.title,
212
- titlePath: test.titlePath,
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
- total_memory: (0, import_node_os.totalmem)()
220
+ total_memory: (0, import_node_os.totalmem)(),
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")
219
228
  };
220
229
  this.log(`${JSON.stringify(data)}
221
230
  `);
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.14",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",