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

include JUnit 'hostname' suite attribute in meta_data #52

Closed
bryanbcook opened this issue Feb 28, 2024 · 0 comments
Closed

include JUnit 'hostname' suite attribute in meta_data #52

bryanbcook opened this issue Feb 28, 2024 · 0 comments

Comments

@bryanbcook
Copy link
Contributor

I've been working with Playwright recently and have noticed that it stores the browser type in the 'hostname' attribute.

Using the getting started guide, this simplified junit xml results file shows that the two tests are repeated in the test output, differentiated by their hostname.

<testsuites>
   <testsuite name="example.spec.ts" hostname="chromium">
     <testcase name="has title" classname="example.spec.ts" />
     <testcase name="get started link" classname="example.spec.ts" />
   </testsuite>

   <testsuite name="example.spec.ts" hostname="firefox">
     <testcase name="has title" classname="example.spec.ts" />
     <testcase name="get started link" classname="example.spec.ts" />
   </testsuite>

   <testsuite name="example.spec.ts" hostname="webkit">
     <testcase name="has title" classname="example.spec.ts" />
     <testcase name="get started link" classname="example.spec.ts" />
   </testsuite>
</testsuites>

This hostname property should be accessible in our meta_data for the suite and testcases.

@bryanbcook bryanbcook changed the title include JUnit 'hostname' property in meta_data include JUnit 'hostname' suite attribute in meta_data Feb 29, 2024
bryanbcook added a commit to bryanbcook/test-results-parser that referenced this issue Feb 29, 2024
ASaiAnudeep pushed a commit that referenced this issue Mar 1, 2024
* test consistency fix

* fix for junit suite property inheritence

* include hostname in meta-data from suite in testcases #52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant