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

Check JUnit and XUnit against the XSD schemas #3154

Closed
wants to merge 2 commits into from

Conversation

seberm
Copy link
Collaborator

@seberm seberm commented Aug 19, 2024

This PR adds tests for checking XML schemas of JUnit and XUnit generated by junit and polarion report plugins. The XSD schemas are purposely limited only to currently supported features (tags/attributes) by these report plugins.

The plan is probably to check these schemas dynamically directly by TMT for every supported junit flavor in the future.

This PR is highly related to #3150 because I need better test coverage, especially for the xunit.xml (output of the Polarion report plugin) - probably this will be obsoleted by tests in #3150 - Schema check is done directly in tmt.

Pull Request Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage
  • update the specification
  • adjust plugin docstring
  • modify the json schema
  • mention the version
  • include a release note

@seberm seberm added command | tests tmt tests command step | report Stuff related to the report step plugin | polarion Plugins implementing the Polarion integration plugin | junit The junit report plugin ci | full test Pull request is ready for the full test execution labels Aug 19, 2024
@seberm seberm self-assigned this Aug 19, 2024
@seberm seberm force-pushed the feature/check-junit-against-schema branch from 119957c to 4901812 Compare August 19, 2024 12:48
@seberm seberm force-pushed the feature/check-junit-against-schema branch from 4901812 to da84c2f Compare August 20, 2024 09:47
@seberm seberm marked this pull request as draft August 20, 2024 11:59
@seberm
Copy link
Collaborator Author

seberm commented Aug 26, 2024

I think we can close this PR because the schema check will be done directly (dynamically) by tmt junit report plugin (#3150).

@seberm seberm closed this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci | full test Pull request is ready for the full test execution command | tests tmt tests command plugin | junit The junit report plugin plugin | polarion Plugins implementing the Polarion integration step | report Stuff related to the report step
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant