Update junit reporter to add failures attribute (#3086)

Signed-off-by: Samuel Boucher <boucher.samuel.c@gmail.com>
This commit is contained in:
Samuel Boucher 2018-06-06 12:14:24 -04:00 committed by Clinton Wolfe
parent cd44ce6775
commit 27995f37e8
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@ module Inspec::Reporters
profile_xml.add_attribute('name', profile[:name])
profile_xml.add_attribute('tests', count_profile_tests(profile))
profile_xml.add_attribute('failed', count_profile_failed_tests(profile))
profile_xml.add_attribute('failures', count_profile_failed_tests(profile))
profile[:controls].each do |control|
next if control[:results].nil?

View file

@ -1,6 +1,6 @@
<?xml version='1.0'?>
<testsuites>
<testsuite name='long_commands' tests='4' failed='1'>
<testsuite name='long_commands' tests='4' failed='1' failures='1'>
<testcase name='File /tmp should be directory' classname='long_commands.Anonymous' target='local://' time='0.002058'/>
<testcase name='File /tmp should be directory' classname='long_commands.tmp-1.0' target='local://' time='0.000102'/>
<testcase name='gem package rubocop should be installed' classname='long_commands.Anonymous' target='local://' time='0.000168'>