testcafe-reporter-testit 5.0.6 → 5.0.8-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 +1 -3
- package/lib/converter.js +0 -1
- package/lib/metadata.d.ts +0 -1
- package/lib/metadata.js +1 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -104,7 +104,6 @@ Description of metadata properties:
|
|
|
104
104
|
- `title` - autotest name specified in the autotest card. If not specified, the name from the displayName method is used
|
|
105
105
|
- `description` - autotest description specified in the autotest card
|
|
106
106
|
- `labels` - labels listed in the autotest card
|
|
107
|
-
- `layer` - test pyramid layer in the autotest card (source **Run**). Use `TestLayers` from `testit-js-commons` for recommended values, or any custom string
|
|
108
107
|
- `tags` - tags listed in the autotest card
|
|
109
108
|
- `links` - links listed in the autotest card
|
|
110
109
|
- `nameSpace` - directory in the TMS system (default - directory's name of test)
|
|
@@ -125,7 +124,7 @@ Description of methods:
|
|
|
125
124
|
// annotations.spec.ts
|
|
126
125
|
const adapter = require('testcafe-reporter-testit')();
|
|
127
126
|
import { Selector } from 'testcafe';
|
|
128
|
-
import { Link
|
|
127
|
+
import { Link } from 'testit-js-commons';
|
|
129
128
|
import { join } from "path";
|
|
130
129
|
|
|
131
130
|
fixture('TestCafé Example Fixture - Documentation').page('http://devexpress.github.io/testcafe/example');
|
|
@@ -149,7 +148,6 @@ test.meta({
|
|
|
149
148
|
classname: 'classname',
|
|
150
149
|
workItemIds: ['123', '321'],
|
|
151
150
|
labels: ['label1', 'label2'],
|
|
152
|
-
layer: TestLayers.API,
|
|
153
151
|
tags: ['tag1', 'tag2'],
|
|
154
152
|
})('test', async t => {
|
|
155
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,9 +36,6 @@ 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
|
}
|
|
@@ -83,9 +80,6 @@ class Metadata {
|
|
|
83
80
|
if (!this.labels && metadata.labels) {
|
|
84
81
|
this.labels = metadata.labels;
|
|
85
82
|
}
|
|
86
|
-
if (!this.layer && metadata.layer) {
|
|
87
|
-
this.layer = metadata.layer;
|
|
88
|
-
}
|
|
89
83
|
if (!this.tags && metadata.tags) {
|
|
90
84
|
this.tags = metadata.tags;
|
|
91
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testcafe-reporter-testit",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8-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.
|
|
46
|
+
"testit-js-commons": "5.0.8-TMS-5.8"
|
|
47
47
|
}
|
|
48
48
|
}
|