qase-javascript-commons 2.5.10 → 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/changelog.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# qase-javascript-commons@2.6.0
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
- Added `tags: string[]` field to `TestResultType` domain model for tag support.
|
|
6
|
+
- Tags are mapped to `fields.tags` as a comma-separated string when sending results to API v2.
|
|
7
|
+
- Tags are included in report serialization output.
|
|
8
|
+
|
|
1
9
|
# qase-javascript-commons@2.5.10
|
|
2
10
|
|
|
3
11
|
## What's new
|
package/dist/client/clientV2.js
CHANGED
|
@@ -140,6 +140,12 @@ class ClientV2 extends clientV1_1.ClientV1 {
|
|
|
140
140
|
defect: this.config.defect ?? false,
|
|
141
141
|
signature: result.signature,
|
|
142
142
|
};
|
|
143
|
+
if (result.tags.length > 0) {
|
|
144
|
+
model.fields = {
|
|
145
|
+
...model.fields,
|
|
146
|
+
tags: [...new Set(result.tags)].join(','),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
143
149
|
this.logger.logDebug(`Transformed result: ${JSON.stringify(model)}`);
|
|
144
150
|
return model;
|
|
145
151
|
}
|
|
@@ -24,6 +24,7 @@ class TestResultType {
|
|
|
24
24
|
relations;
|
|
25
25
|
muted;
|
|
26
26
|
message;
|
|
27
|
+
tags;
|
|
27
28
|
preparedAttachments;
|
|
28
29
|
constructor(title) {
|
|
29
30
|
this.id = '';
|
|
@@ -42,6 +43,7 @@ class TestResultType {
|
|
|
42
43
|
this.relations = null;
|
|
43
44
|
this.muted = false;
|
|
44
45
|
this.message = null;
|
|
46
|
+
this.tags = [];
|
|
45
47
|
this.preparedAttachments = [];
|
|
46
48
|
}
|
|
47
49
|
/**
|
|
@@ -192,6 +192,7 @@ class ReportReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
192
192
|
relations: result.relations,
|
|
193
193
|
muted: result.muted,
|
|
194
194
|
message: result.message,
|
|
195
|
+
tags: result.tags,
|
|
195
196
|
};
|
|
196
197
|
// Internal-only fields are excluded: testops_id, group_params, run_id, author, testops_project_mapping, preparedAttachments
|
|
197
198
|
return serialized;
|