Is there an option to remove device names and OS version from junit reports · Issue #272 · XCTestHTMLReport/XCTestHTMLReport · GitHub
Skip to content

Is there an option to remove device names and OS version from junit reports #272

Open

Description

@chri7325

The junit results output by this tool add in the device and OS version into the junit results. Unfortunately, the . in the results does not play well with the Jenkins junit plugin, which treats the . as a separator between test suite and test name. This also impacts other tools such as the slack plugin which also reports junit results but also reports the wrong test suite and test names. Here's an example:

image

image

Activity

  1. tylervick commented on Jul 19, 2022

    @tylervick
    Member

    Hey @chri7325 - rather than removing this data, would it be acceptable to replace the problematic delimiters with some other symbol? E.g. 15.0 ~> 15_0

  2. chri7325 commented on Jul 19, 2022

    @chri7325
    Author

    @tylervick thank you for the very quick response. Yes, I think that would actually be a good general fix as well. I was thinking an option could also be beneficial in other cases where you may not want results to be completely unique for historical purposes. For example, we currently use a single device for results and if we want to keep a total history of the results for a test, we'll lose the history next time we do an Xcode upgrade and the OS version increments, creating new unique results. That might be a lot more work though so in the short term, just removing the . would be a great first start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions