mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Update junit reporter to add failures attribute (#3086)
Signed-off-by: Samuel Boucher <boucher.samuel.c@gmail.com>
This commit is contained in:
parent
cd44ce6775
commit
27995f37e8
2 changed files with 2 additions and 1 deletions
|
@ -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?
|
||||
|
|
|
@ -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'>
|
||||
|
|
Loading…
Reference in a new issue