Closed mcallaway closed 8 years ago
Turns out this hostname is not the one Jenkins cares about. Jenkins will only display "classname", so to make hostname visible in test results, I had to use "sed" to edit the XML results to prepend hostname on the classname. This is a shortcoming in Jenkins, in my view, not this formatter. I'm closing this issue.
The current JUnit schema here:
https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd
provides for an attribute "hostname", "Host on which the tests were executed. 'localhost' should be used if the hostname cannot be determined."
It would be nice to be able to set this in some way. I'm using this module with Serverspec, and can get this feature with the following patch:
The use of an environment variable in this way is probably too naive. But it demonstrates the idea.