Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kakarasiri opened this issue Aug 22, 2024 Discussed in #2199 · 1 comment
Closed

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

kakarasiri opened this issue Aug 22, 2024 Discussed in #2199 · 1 comment

Comments

@kakarasiri
Copy link

kakarasiri commented Aug 22, 2024

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>
@mpkorstanje
Copy link
Contributor

Let's finish the discussion before starting a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants