Skip to content

Conversation

@eap
Copy link

@eap eap commented Aug 24, 2025

pytest and ctest both support adding properites to individual test cases (as noted in the attached issue). This PR updates the properties element parsing so that it now works with both test cases and test suites.

Fixes: #116

@eap
Copy link
Author

eap commented Aug 28, 2025

@weiwei - I'm interested in your thoughts on this PR. Feedback is welcome, I'd be happy to update it to your preferences.

@weiwei
Copy link
Owner

weiwei commented Sep 14, 2025

Hey, sorry for getting back late. pytest compatible schema is added in https://github.com/weiwei/junitparser/blob/master/junitparser/xunit2.py. Could you check if that fits your need, or if not, add the code over there? Thanks!

@eap
Copy link
Author

eap commented Sep 14, 2025

@weiwei - Looks like xunit2 didn't have Properties in test cases. I've moved the implementation there updated/extended the README with a short code example.

Copy link
Collaborator

@EnricoMi EnricoMi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Some minor remarks.

@EnricoMi EnricoMi changed the title Properties tags are now supported in TestCase (using the existing types developed for TestSuite properties). Make TestCase support Properties tags Nov 9, 2025
Copy link
Author

@eap eap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comments. I've updated the PR with your suggestions.

@eap eap requested a review from EnricoMi December 4, 2025 17:38
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

Successfully merging this pull request may close these issues.

How to get testcases properties?

3 participants