testbeats 2.5.0 → 2.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testbeats",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Publish test results to Microsoft Teams, Google Chat, Slack and InfluxDB",
5
5
  "main": "src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -55,6 +55,9 @@ class Beats {
55
55
  if (this.ci) {
56
56
  payload.ci_details = [this.ci];
57
57
  }
58
+ if (this.config.metadata) {
59
+ payload.metadata = Object.assign(this.result.metadata || {}, this.config.metadata);
60
+ }
58
61
  return payload;
59
62
  }
60
63
 
package/src/index.d.ts CHANGED
@@ -305,6 +305,7 @@ export interface PublishReport {
305
305
  api_key?: string;
306
306
  project?: string;
307
307
  run?: string;
308
+ metadata?: Record<string, string>;
308
309
  show_failure_summary?: boolean;
309
310
  show_failure_analysis?: boolean;
310
311
  show_smart_analysis?: boolean;
@@ -318,6 +319,7 @@ export interface PublishConfig {
318
319
  api_key?: string;
319
320
  project?: string;
320
321
  run?: string;
322
+ metadata?: Record<string, string>;
321
323
  targets?: ITarget[];
322
324
  extensions?: IExtension[];
323
325
  results?: ParseOptions[] | PerformanceParseOptions[] | CustomResultOptions[];