I am running serverspec in windows machine and i am creating output in html format.
rspec 'C:\Ruby Scripts\Test.rb' --format html --out 'C:\Ruby Scripts\Test.html'
But the output html contains huge list of powershell functions in it if there are failed test case. how to omit that powershell function and get only summary?
The script is as below.
require 'spec_helper'
set :backend, :cmd
set :os, :family => 'windows'
# check the msi is installed or not
describe package('Orca') do
it { should be_installed }
end
#
describe windows_registry_key('HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyProductName') do
it { should exist }
end
describe windows_registry_key('HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyProductName') do
it { should have_property('AppServer') }
end
describe windows_registry_key('HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyProductName') do
it { should have_property('DBServer') }
end
describe windows_registry_key('HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyProductName') do
it { should have_property('WebServer') }
end
The result is having Powershell function as given in below image. How to omit this Powershell functions from result html.