File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.13.0
2
+ - changed an approach to distribute tags as attributes for suite and test entities
3
+
1
4
## 0.12.0
2
5
- added support of named attachments
3
6
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ class RPFormatter extends Formatter {
84
84
if ( ! this . features [ featureName ] ) {
85
85
await retry ( async ( ) => {
86
86
const featureItem = this . rpClient . startTestItem ( {
87
+ attributes : this . prepareTags ( testCase . gherkinDocument . feature . tags ) ,
87
88
description :
88
89
this . formatTags ( testCase . gherkinDocument . feature . tags ) +
89
90
'\n' +
@@ -123,7 +124,7 @@ class RPFormatter extends Formatter {
123
124
name : testCase . pickle . name ,
124
125
startTime,
125
126
type : 'STEP' ,
126
- attributes,
127
+ attributes : [ ... attributes , ... this . prepareTags ( testCase . pickle . tags ) ] ,
127
128
retry : retryTest
128
129
} , this . launchId , featureTempId ) ;
129
130
await testItem . promise ;
@@ -242,6 +243,9 @@ class RPFormatter extends Formatter {
242
243
243
244
formatTags ( tags ) {
244
245
return tags . map ( tag => '<code>' + tag . name + '</code>' ) . join ( '' )
246
+
247
+ prepareTags ( tags ) {
248
+ return tags . map ( tag => tag . name )
245
249
}
246
250
247
251
prepareContent ( attachment ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @qavajs/format-report-portal" ,
3
- "version" : " 0.12 .0" ,
3
+ "version" : " 0.13 .0" ,
4
4
"description" : " cucumber formatter for report portal" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments