testcafe-reporter-testit 5.0.8 → 5.0.9-TMS-5.8
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 +3 -6
- package/lib/converter.js +0 -1
- package/lib/metadata.d.ts +0 -1
- package/lib/metadata.js +1 -12
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -98,14 +98,12 @@ Methods and properties can be used to specify information about autotest.
|
|
|
98
98
|
### Properties
|
|
99
99
|
|
|
100
100
|
Description of metadata properties:
|
|
101
|
-
- `
|
|
102
|
-
- `workItemIds` - deprecated, use `workItemId` instead
|
|
101
|
+
- `workItemIds` - a method that links autotests with manual tests. Receives the array of manual tests' IDs
|
|
103
102
|
- `displayName` - internal autotest name (used in Test IT)
|
|
104
103
|
- `externalId` - unique internal autotest ID (used in Test IT)
|
|
105
104
|
- `title` - autotest name specified in the autotest card. If not specified, the name from the displayName method is used
|
|
106
105
|
- `description` - autotest description specified in the autotest card
|
|
107
106
|
- `labels` - labels listed in the autotest card
|
|
108
|
-
- `layer` - test pyramid layer in the autotest card (source **Run**). Use `TestLayers` from `testit-js-commons` for recommended values, or any custom string
|
|
109
107
|
- `tags` - tags listed in the autotest card
|
|
110
108
|
- `links` - links listed in the autotest card
|
|
111
109
|
- `nameSpace` - directory in the TMS system (default - directory's name of test)
|
|
@@ -126,7 +124,7 @@ Description of methods:
|
|
|
126
124
|
// annotations.spec.ts
|
|
127
125
|
const adapter = require('testcafe-reporter-testit')();
|
|
128
126
|
import { Selector } from 'testcafe';
|
|
129
|
-
import { Link
|
|
127
|
+
import { Link } from 'testit-js-commons';
|
|
130
128
|
import { join } from "path";
|
|
131
129
|
|
|
132
130
|
fixture('TestCafé Example Fixture - Documentation').page('http://devexpress.github.io/testcafe/example');
|
|
@@ -148,9 +146,8 @@ test.meta({
|
|
|
148
146
|
title: 'title',
|
|
149
147
|
namespace: 'namespace',
|
|
150
148
|
classname: 'classname',
|
|
151
|
-
|
|
149
|
+
workItemIds: ['123', '321'],
|
|
152
150
|
labels: ['label1', 'label2'],
|
|
153
|
-
layer: TestLayers.API,
|
|
154
151
|
tags: ['tag1', 'tag2'],
|
|
155
152
|
})('test', async t => {
|
|
156
153
|
adapter.addMessage(t, "Message");
|
package/lib/converter.js
CHANGED
|
@@ -20,7 +20,6 @@ class Converter {
|
|
|
20
20
|
title: autotestData.title,
|
|
21
21
|
description: autotestData.description,
|
|
22
22
|
labels: autotestData.labels?.map((label) => ({ name: label })),
|
|
23
|
-
layer: autotestData.layer,
|
|
24
23
|
tags: autotestData.tags,
|
|
25
24
|
links: autotestData.links,
|
|
26
25
|
namespace: autotestData.namespace,
|
package/lib/metadata.d.ts
CHANGED
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,
|
|
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,24 +36,16 @@ class Metadata {
|
|
|
36
36
|
else if (this.isString(labels)) {
|
|
37
37
|
this.labels = [labels];
|
|
38
38
|
}
|
|
39
|
-
if (this.isString(layer)) {
|
|
40
|
-
this.layer = layer;
|
|
41
|
-
}
|
|
42
39
|
if (Array.isArray(tags)) {
|
|
43
40
|
this.tags = tags;
|
|
44
41
|
}
|
|
45
42
|
else if (this.isString(tags)) {
|
|
46
43
|
this.tags = [tags];
|
|
47
44
|
}
|
|
48
|
-
if (this.isString(workItemId)) {
|
|
49
|
-
this.workItemIds = [workItemId];
|
|
50
|
-
}
|
|
51
45
|
if (Array.isArray(workItemIds)) {
|
|
52
|
-
testit_js_commons_1.logger.warn("workItemIds is deprecated. Use workItemId with a single globalId instead.");
|
|
53
46
|
this.workItemIds = workItemIds;
|
|
54
47
|
}
|
|
55
48
|
else if (this.isString(workItemIds)) {
|
|
56
|
-
testit_js_commons_1.logger.warn("workItemIds is deprecated. Use workItemId with a single globalId instead.");
|
|
57
49
|
this.workItemIds = [workItemIds];
|
|
58
50
|
}
|
|
59
51
|
if (this.isString(namespace)) {
|
|
@@ -88,9 +80,6 @@ class Metadata {
|
|
|
88
80
|
if (!this.labels && metadata.labels) {
|
|
89
81
|
this.labels = metadata.labels;
|
|
90
82
|
}
|
|
91
|
-
if (!this.layer && metadata.layer) {
|
|
92
|
-
this.layer = metadata.layer;
|
|
93
|
-
}
|
|
94
83
|
if (!this.tags && metadata.tags) {
|
|
95
84
|
this.tags = metadata.tags;
|
|
96
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testcafe-reporter-testit",
|
|
3
|
-
"version": "5.0.8",
|
|
3
|
+
"version": "5.0.9-TMS-5.8",
|
|
4
4
|
"description": "TestCafe adapter for Test IT",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@types/minimatch": "^5.1.2",
|
|
46
|
-
"testit-js-commons": "5.0.8"
|
|
46
|
+
"testit-js-commons": "5.0.9-TMS-5.8"
|
|
47
47
|
}
|
|
48
48
|
}
|