pantograph/lib/pantograph/junit_generator.rb in pantograph-0.1.12 vs pantograph/lib/pantograph/junit_generator.rb in pantograph-0.1.13
- old
+ new
@@ -3,10 +3,10 @@
def self.generate(results)
# JUnit file documentation: http://llg.cubic.org/docs/junit/
# And http://nelsonwells.net/2012/09/how-jenkins-ci-parses-and-displays-junit-output/
# And http://windyroad.com.au/dl/Open%20Source/JUnit.xsd
- containing_folder = ENV['FL_REPORT_PATH'] || PantographCore::PantographFolder.path || Dir.pwd
+ containing_folder = ENV['PANT_REPORT_PATH'] || PantographCore::PantographFolder.path || Dir.pwd
path = File.join(containing_folder, 'report.xml')
@steps = results
xml_path = File.join(Pantograph::ROOT, "lib/assets/report_template.xml.erb")
xml = ERB.new(File.read(xml_path)).result(binding) # https://web.archive.org/web/20160430190141/www.rrn.dk/rubys-erb-templating-system