testcafe-reporter-testit 3.7.0 → 3.7.2

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/README.md CHANGED
@@ -91,7 +91,8 @@ Description of metadata properties:
91
91
  - `externalId` - unique internal autotest ID (used in Test IT)
92
92
  - `title` - autotest name specified in the autotest card. If not specified, the name from the displayName method is used
93
93
  - `description` - autotest description specified in the autotest card
94
- - `labels` - tags listed in the autotest card
94
+ - `labels` - labels listed in the autotest card
95
+ - `tags` - tags listed in the autotest card
95
96
  - `links` - links listed in the autotest card
96
97
  - `nameSpace` - directory in the TMS system (default - directory's name of test)
97
98
  - `className` - subdirectory in the TMS system (default - file's name of test)
@@ -135,6 +136,7 @@ test.meta({
135
136
  classname: 'classname',
136
137
  workItemIds: ['123', '321'],
137
138
  labels: ['label1', 'label2'],
139
+ tags: ['tag1', 'tag2'],
138
140
  })('test', async t => {
139
141
  adapter.addMessage(t, "Message");
140
142
  adapter.addAttachments(t, paths);
package/lib/converter.js CHANGED
@@ -19,6 +19,7 @@ class Converter {
19
19
  title: autotestData.title,
20
20
  description: autotestData.description,
21
21
  labels: autotestData.labels?.map((label) => ({ name: label })),
22
+ tags: autotestData.tags,
22
23
  links: autotestData.links,
23
24
  namespace: autotestData.namespace,
24
25
  classname: autotestData.classname,
package/lib/metadata.d.ts CHANGED
@@ -6,6 +6,7 @@ export default class Metadata {
6
6
  description: string | undefined;
7
7
  links: Link[] | undefined;
8
8
  labels: string[] | undefined;
9
+ tags: string[] | undefined;
9
10
  workItemIds: string[] | undefined;
10
11
  namespace: string | undefined;
11
12
  classname: string | undefined;
package/lib/metadata.js CHANGED
@@ -5,7 +5,7 @@ class Metadata {
5
5
  constructor(meta, path, name) {
6
6
  this.otherMeta = new Map();
7
7
  if (meta) {
8
- const { externalId, displayName, title, description, links, labels, workItemIds, namespace, classname, ...otherMeta } = meta;
8
+ const { externalId, displayName, title, description, links, labels, tags, workItemIds, namespace, classname, ...otherMeta } = meta;
9
9
  if (this.isString(externalId)) {
10
10
  this.externalId = externalId;
11
11
  }
@@ -36,6 +36,12 @@ class Metadata {
36
36
  else if (this.isString(labels)) {
37
37
  this.labels = [labels];
38
38
  }
39
+ if (Array.isArray(tags)) {
40
+ this.tags = tags;
41
+ }
42
+ else if (this.isString(tags)) {
43
+ this.tags = [tags];
44
+ }
39
45
  if (Array.isArray(workItemIds)) {
40
46
  this.workItemIds = workItemIds;
41
47
  }
@@ -74,6 +80,9 @@ class Metadata {
74
80
  if (!this.labels && metadata.labels) {
75
81
  this.labels = metadata.labels;
76
82
  }
83
+ if (!this.tags && metadata.tags) {
84
+ this.tags = metadata.tags;
85
+ }
77
86
  if (!this.workItemIds && metadata.workItemIds) {
78
87
  this.workItemIds = metadata.workItemIds;
79
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testcafe-reporter-testit",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "description": "TestCafe adapter for Test IT",
5
5
  "keywords": [],
6
6
  "author": {
@@ -43,6 +43,6 @@
43
43
  "testcafe": "^3.0.1"
44
44
  },
45
45
  "dependencies": {
46
- "testit-js-commons": "3.7.0"
46
+ "testit-js-commons": "3.7.2"
47
47
  }
48
48
  }