mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
fix xml format
This commit is contained in:
@@ -309,14 +309,15 @@ TestMethod = {
|
||||
output = self.result.key .. ' ' .. self.result.message
|
||||
end
|
||||
if output == '' and self.skipped == true then
|
||||
failure = '\t\t\t<skipped message="' .. self.skipreason .. '></skipped>'
|
||||
output = self.skipreason
|
||||
end
|
||||
|
||||
-- append XML for the test class result
|
||||
self.testmodule.xml = self.testmodule.xml .. '\t\t<testclass classname="' ..
|
||||
self.method .. '" name="' .. self.method ..
|
||||
self.testmodule.xml = self.testmodule.xml .. '\t\t<testcase classname="' ..
|
||||
self.method .. '" name="' .. self.method .. '" assertions="' .. tostring(#self.asserts) ..
|
||||
'" time="' .. endtime .. '">\n' ..
|
||||
failure .. '\t\t</testclass>\n'
|
||||
failure .. '\t\t</testcase>\n'
|
||||
|
||||
-- unused currently, adds a preview image for certain graphics methods to the output
|
||||
local preview = ''
|
||||
|
||||
Reference in New Issue
Block a user