Hi,
We are about to use Pabot to execute our regression tests using Jenkins
plugin where the main test condition is to use
--noncritical parameter.The problem is that Jenkins is taking the output.xml file as a base to populate test results. Pabot while merging results using the '_report_results' function from pabot.py does not pass 'options' value into 'merge' method. That means we are loosing our 'non_critical' tag in the output.xml file so Jenkins doesn't show them.
For now we have done our little fix in the '_report_results' function in order to regenerate the output.xml file:
def _report_results(outs_dir, options, start_time_string):
new_output_path = os.path.abspath(os.path.join(options.get('outputdir', '.'), options.get('output', 'output.xml')))
output_path = os.path.abspath(os.path.join(options.get('outputdir', '.'), options.get('output', 'merge_output.xml')))
merge(*sorted(glob(os.path.join(outs_dir, '**/*.xml')))).save(output_path)
print 'Output_rob: %s' % output_path
#options['output'] = None # Do not write output again with rebot
options['output'] = new_output_path # Do not write output again with rebot
return rebot(output_path, **_options_for_rebot(options, start_time_string, _now()))
If there is no other
dependencies can You please add similar solution to Pabot code so we can use it without our funny hack?