@@ -84,11 +84,10 @@ 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
+ attributes : this . rpConfig . tagsAsAttributes ? this . prepareTags ( testCase . gherkinDocument . feature . tags ) : [ ] ,
88
88
description :
89
- this . formatTags ( testCase . gherkinDocument . feature . tags ) +
90
- '\n' +
91
- testCase . gherkinDocument . feature . description ,
89
+ this . rpConfig . tagsAsAttributes ? '' : `${ this . formatTags ( testCase . gherkinDocument . feature . tags ) } \n`
90
+ + testCase . gherkinDocument . feature . description ,
92
91
name : featureName ,
93
92
startTime : this . rpClient . helpers . now ( ) ,
94
93
type : 'SUITE'
@@ -120,11 +119,13 @@ class RPFormatter extends Formatter {
120
119
const retryTest = Boolean ( testCase . attempt ) ;
121
120
const testItem = await retry ( async ( ) => {
122
121
const testItem = this . rpClient . startTestItem ( {
123
- description : this . formatTags ( testCase . pickle . tags ) ,
122
+ description : this . rpConfig . tagsAsAttributes ? '' : this . formatTags ( testCase . pickle . tags ) ,
124
123
name : testCase . pickle . name ,
125
124
startTime,
126
125
type : 'STEP' ,
127
- attributes : [ ...attributes , ...this . prepareTags ( testCase . pickle . tags ) ] ,
126
+ attributes : [
127
+ ...attributes ,
128
+ ...( this . rpConfig . tagsAsAttributes ? this . prepareTags ( testCase . pickle . tags ) : [ ] ) ] ,
128
129
retry : retryTest
129
130
} , this . launchId , featureTempId ) ;
130
131
await testItem . promise ;
0 commit comments