Closed maneac closed 1 year ago
Tried this out locally, defs improves the multiline support situation.
These are great improvements? How can be helped to get this in?
@jstemmer Can you take a look?
@maneac amazing work, saved a lot of time debugging this for myself!
Thanks for taking the time to address the many outstanding issues that were present in the old version. I recently released v2.0.0, which I believe fixes all of the issues addressed here. I don't intend to maintain the old v1 branch, so won't be merging this PR.
All changes are intended to be compliant with the JUnit schema found here: https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd
Several changes in one MR here, so to break it down:
Add flag to remove parent test from sub-tests (cases)
Issues: #72
If any sub-test within a function failed, the parent function is also logged as a failure. This can be misleading when viewing test results, so the option to ignore these parent lines has been added.
Enhance multi-line support
Issues: #80 #18
Only some test output was being written to the buffer, which overwrote anything set directly. Changed to always write to the buffer on output.
Populate "system-out" attribute with log results on PASS
Issues: #108
Uses the HTML string escaper to safely set the output.
Differentiate between "Errors" and "Failures"
Issues: #101 #105
If it goes wrong within a test (mismatched output, unexpected error returned, etc.), it's classified as a "Failure". The remainder of the cases fall into either build errors, or unexpected panics, which are both classified as "Errors".