testit-adapter-mocha 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 +0 -3
- package/lib/reporter.js +0 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -146,7 +146,6 @@ Description of metadata properties:
|
|
|
146
146
|
- `this.title` - autotest name specified in the autotest card. If not specified, the name from the displayName method is used
|
|
147
147
|
- `this.description` - autotest description specified in the autotest card
|
|
148
148
|
- `this.labels` - labels listed in the autotest card
|
|
149
|
-
- `this.layer` - test pyramid layer in the autotest card (source **Run**). Use `TestLayers` from `testit-js-commons` for recommended values (`E2E`, `UI`, `API`, `Contract`, `Integration`, `Component`, `Unit`), or any custom string
|
|
150
149
|
- `this.tags` - tags listed in the autotest card
|
|
151
150
|
- `this.links` - links listed in the autotest card
|
|
152
151
|
- `this.nameSpace` - directory in the TMS system (default - directory's name of test)
|
|
@@ -169,7 +168,6 @@ Description of methods:
|
|
|
169
168
|
|
|
170
169
|
import assert from "assert";
|
|
171
170
|
import {Context, Link} from "testit-adapter-mocha";
|
|
172
|
-
import { TestLayers } from "testit-js-commons";
|
|
173
171
|
|
|
174
172
|
const links: Link[] = [
|
|
175
173
|
{ url: "https://test01.example", title: "Example01", description: "Example01 description", type: "Issue" },
|
|
@@ -190,7 +188,6 @@ it('All annotations and methods', function (this: Context) {
|
|
|
190
188
|
this.title = 'title';
|
|
191
189
|
this.description = 'description';
|
|
192
190
|
this.labels = ['label1', 'label2'];
|
|
193
|
-
this.layer = TestLayers.API;
|
|
194
191
|
this.links = links;
|
|
195
192
|
|
|
196
193
|
this.addMessage('This is a message');
|
package/lib/reporter.js
CHANGED
|
@@ -167,7 +167,6 @@ class TmsReporter extends Reporter {
|
|
|
167
167
|
ctx.description = undefined;
|
|
168
168
|
ctx.links = [];
|
|
169
169
|
ctx.labels = [];
|
|
170
|
-
ctx.layer = undefined;
|
|
171
170
|
ctx.tags = [];
|
|
172
171
|
ctx.classname = undefined;
|
|
173
172
|
ctx.workItemsIds = [];
|
|
@@ -198,7 +197,6 @@ class TmsReporter extends Reporter {
|
|
|
198
197
|
title: test.ctx?.title,
|
|
199
198
|
links: test.ctx?.links,
|
|
200
199
|
labels: test.ctx?.labels?.map((label) => ({ name: label })),
|
|
201
|
-
layer: test.ctx?.layer,
|
|
202
200
|
tags: test.ctx?.tags,
|
|
203
201
|
namespace: test.ctx?.namespace ?? this._getNameSpace(test.file),
|
|
204
202
|
classname: test.ctx?.classname ?? this._getClassName(test.file),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testit-adapter-mocha",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8-TMS-5.8",
|
|
4
4
|
"description": "Mocha adapter for Test IT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/types.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"mocha": "^10.2.0",
|
|
33
33
|
"deasync-promise": "^1.0.1",
|
|
34
|
-
"testit-js-commons": "5.0.
|
|
34
|
+
"testit-js-commons": "5.0.8-TMS-5.8"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"lib"
|