Repository navigation
Add JUnit XML comparison reports - #22
Conversation
AdityaWagh06
left a comment
There was a problem hiding this comment.
Thanks @siddardh-core, the renderer is well structured and the escaping test is a nice touch. A few things before this can be merged:
- Formatting fails CI.
ruff format --checkreports 3 files (report.py,test_cli.py,test_compare_and_report.py). Runruff format src tests examplesand commit the result. - Behavior changes. The issue asks for cases that pass in both runs but whose output changed to be passing testcases with a
<system-out>note (case.category == "unchanged_pass" and case.output_changed). Please add that, with a test. - README. Add
junitto thecompare --formatline in the CLI reference, plus one or two sentences on the mapping: regressions and still-failing cases →<failure>, errors →<error>, missing in candidate →<skipped>, behavior changes → pass with<system-out>. - Unreachable branch.
elif case.candidate_status is Nonecan't be reached, because a missing candidate is alwaysmissing_in_candidate. Please remove it. - Heads-up: another PR touching
report.pywas just merged. Please update your branch withmain(git fetch upstream && git merge upstream/main) and resolve the conflict. Keep both the warnings section and your junit branch.
Once these are done and CI is green, I'll take another look.
|
Hi @AdityaWagh06, I've addressed all the requested changes in my latest commit (
All local checks are passing:
I noticed that GitHub is showing a workflow awaiting maintainer approval, so the CI checks are still pending. Could you please approve the workflow and review the latest changes when convenient? Thank you for your guidance! |
|
Thanks @siddardh-core, all four points are addressed, nice work! Two small things left:
Once CI is green, I'll merge it. |
|
Hi! I've merged the latest I also verified the changes:
I'm completing the requested README formatting cleanup next. I'll push that update once it's done. Thank you for the review and guidance! |
|
Merged, thank you @siddardh-core! JUnit output was on our roadmap, and you handled every review point carefully: errors vs failures, skipped missing cases, the changed-output note and escaping. Great work, and it’ll ship in v0.2.0 next week 🎉 If you enjoyed contributing, a ⭐ on the repo helps others find the project. Follow OpenWave India on GitHub and LinkedIn for new projects coming soon. |
Summary
modeldiff comparecommand using--format junit.xml.etree.ElementTree.Failure and skipped-case handling
Validation
python -m ruff check .— passed.python -m pytest— 150 passed.git diff --check— passed.