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

Support multi-line failure/error messages #589

Open
VirtualTim opened this issue Dec 1, 2023 · 0 comments
Open

Support multi-line failure/error messages #589

VirtualTim opened this issue Dec 1, 2023 · 0 comments

Comments

@VirtualTim
Copy link

What feature do you want to see added?

In my tests, I sometimes output multiline failure messages. This is useful, for example, when a test is comparing json output.
This doesn't appear to be supported, new lines are converted to spaces.
I am using JUnit and xUnit plugins, but I'm pretty sure this comes from this plugin.

Eg:

<?xml version="1.0" ?>
<testsuite name="apollo.windows.testcase.apollo.data.custom_properties.get_custom_properties" tests="1" failures="1" errors="0" skipped="0" time="40.505">
    <testcase name="testbed.apollo.windows.testcase.apollo.data.custom_properties.get_custom_properties" time="17.606">
        <failure type="Assertion" message="AssertionError: There were problems with the Custom Properties of the sample data:
Custom Properties of Rgb int16 small.int16-rgb did not match reference.
{'crs[23 chars]6', 'unit': 'DEGREES', 'pixelSizeX': 0.0272188[149 chars]1040} != {'crs[23 chars]6', 'dataType': 'INT16', 'pyramids': 'External[184 chars]1040}
  {'bands': 3,
   'crs_horizontal': 'EPSG:4326',
   'dataType': 'INT16',
   'height': 1040,
   'pixelSizeX': 0.027218811502027925,
-  'pixelSizeY': -0.02722409367982037,
?                        - ^^^  - ---

+  'pixelSizeY': -0.02721881150202792,
?                       +++++++  ^

-  'pyramids': 'None',
?               ^^ ^

+  'pyramids': 'External',
?               ^^^^^ ^^

+  'pyramidsApolloCreated': True,
   'type': 'Continuous',
   'unit': 'DEGREES',
   'width': 2302}
Reference file has been copied to test artifacts for visual comparison.
Custom Properties of Sandiego1m null.sampleiws-usa-sandiego1m null did not match reference.
{'crs[96 chars]0000096166241228, 'dataType': 'UINT8', 'width'[76 chars]2044} != {'crs[96 chars]0000056308598955, 'dataType': 'UINT8', 'width'[76 chars]2044}
  {'bands': 3,
   'crs_horizontal': 'EPSG:26911',
   'dataType': 'UINT8',
   'height': 2044,
   'pixelSizeX': 1.000005630859949,
-  'pixelSizeY': -1.0000096166241228,
+  'pixelSizeY': -1.0000056308598955,
   'pyramids': 'Internal',
   'type': 'Continuous',
   'unit': 'METERS',
   'width': 2058}
Reference file has been copied to test artifacts for visual comparison.
"/>
    </testcase>
</testsuite>

becomes:
image

Upstream changes

No response

Are you interested in contributing this feature?

No response

@VirtualTim VirtualTim changed the title Support multi-line Error Messages Support multi-line failure/error messages Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant