Tero Pikala
unread,Sep 23, 2009, 9:59:52 AM9/23/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mxunit
When MXUnit creates XML report it includes properties and when those
values have quotes it doesn't escape them properly.
(I did notice some discussions about this in other thread but latest
SVN code didn't yet have fix)
Patch is below.
Tero Pikala
Index: framework/JUnitXMLTestResult.cfc
===================================================================
--- framework/JUnitXMLTestResult.cfc (revision 1223)
+++ framework/JUnitXMLTestResult.cfc (working copy)
@@ -83,7 +83,7 @@
var properties = '';
for(prop in collection){
if( isSimpleValue(collection[prop]) ){
- properties = properties & '<property name="#ucase(prop)#"
value="#replace(collection[prop],"&","&","all")#" />';
+ properties = properties & '<property name="#ucase(prop)#"
value="#replaceList(collection[prop],'&,"','&,"')#" />';
}else{
properties = properties & '<property name="#ucase(prop)#"
value="Complex Data Type...Not Displaying" />';
}