update ceedling to 0.29.0
This commit is contained in:
@@ -22,7 +22,10 @@ class JunitTestsReport < Plugin
|
||||
def post_build
|
||||
@results_list.each_key do |context|
|
||||
results = @ceedling[:plugin_reportinator].assemble_test_results(@results_list[context])
|
||||
file_path = File.join( PROJECT_BUILD_ARTIFACTS_ROOT, context.to_s, 'report.xml' )
|
||||
|
||||
artifact_filename = @ceedling[:configurator].project_config_hash[:junit_tests_report_artifact_filename] || 'report.xml'
|
||||
artifact_fullpath = @ceedling[:configurator].project_config_hash[:junit_tests_report_path] || File.join(PROJECT_BUILD_ARTIFACTS_ROOT, context.to_s)
|
||||
file_path = File.join(artifact_fullpath, artifact_filename)
|
||||
|
||||
@ceedling[:file_wrapper].open( file_path, 'w' ) do |f|
|
||||
@testsuite_counter = 0
|
||||
@@ -90,7 +93,14 @@ class JunitTestsReport < Plugin
|
||||
|
||||
unless suite[:stdout].empty?
|
||||
stream.puts(' <system-out>')
|
||||
suite[:stdout].each{|line| stream.puts line }
|
||||
suite[:stdout].each do |line|
|
||||
line.gsub!(/&/, '&')
|
||||
line.gsub!(/</, '<')
|
||||
line.gsub!(/>/, '>')
|
||||
line.gsub!(/"/, '"')
|
||||
line.gsub!(/'/, ''')
|
||||
stream.puts(line)
|
||||
end
|
||||
stream.puts(' </system-out>')
|
||||
end
|
||||
|
||||
@@ -98,6 +108,7 @@ class JunitTestsReport < Plugin
|
||||
end
|
||||
|
||||
def write_test( test, stream )
|
||||
test[:test].gsub!('"', '"')
|
||||
case test[:result]
|
||||
when :success
|
||||
stream.puts(' <testcase name="%<test>s" />' % test)
|
||||
|
||||
Reference in New Issue
Block a user