--- a/reports/Builder__TestReportFormat.st Sat Mar 11 21:41:58 2017 +0000
+++ b/reports/Builder__TestReportFormat.st Sat Aug 19 14:43:15 2017 +0100
@@ -342,7 +342,7 @@
message := 'unknown exception occurred (no exception details available)'
] ifFalse:[
type := exception class name.
- message := exception messageText ifNil:[ exception description ].
+ message := exception messageText notNil ifTrue:[ exception description ] ifFalse:[ 'no exception'].
].
@@ -353,6 +353,13 @@
nextPutAll:'" message="';
nextPutAll:(self encode: message);
nextPutAll:'"><!![CDATA['; cr.
+ "/ Write system identification here so one can tell on which system
+ "/ it failed. Jenkins JUnit plugin infortunately does not show this
+ "/ info in it's own UI
+ self writeCDATA: ('Hostname: ' , OperatingSystem getHostName , Character cr).
+ self writeCDATA: ('OS: ' , OperatingSystem osName , Character cr).
+ self writeCDATA: ('Arch: ' , OperatingSystem getCPUType , Character cr, Character cr).
+
self writeCDATA: (stacktrace ? 'stacktrace not available').
stream
nextPutAll:']]></'; nextPutAll: result; nextPutAll:'>';
@@ -374,7 +381,7 @@
stream flush
"Created: / 03-08-2011 / 19:42:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 16-09-2014 / 18:55:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 19-08-2017 / 14:38:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!TestReportFormat::JUnit methodsFor:'writing - utilities'!