Skip to content

Add property tag into Junit report when running Cucumber tests #2200

Closed
@kakarasiri

Description

@kakarasiri

Discussed in https://github.com/orgs/cucumber/discussions/2199

I would like to add tag into junit report.
Is it possible for doing that ? or Is there any plugin that we can used ?

TestRunner.scala
@RunWith(classOf[Cucumber]) @CucumberOptions( features = Array("classpath:features/"), glue = Array("steps"), plugin = Array( "pretty", "html:target/test-reports/cucumber/cucumber.html", "json:target/test-reports/cucumber/cucumber.json", "junit:target/test-reports/cucumber/cucumber-results.xml", ), )

Current cucumber-results.xml:

<testsuite>
    <testcase>
        </system-out>
        </system-out>
    </testcase>
</testsuite>

What I would like to have:

<testsuite>
    <testcase>
        **<properties>
            <property name="" value=""/>
        </properties>**
        </system-out>
        </system-out>
    </testcase>
</testsuite>
```</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions