1

serverspecログ形式を上書きして別のファイルに抽出するにはどうすればよいですか? これを行うことはできますが、別のファイルに抽出することはできません。

私のコードスニペットは次のとおりです。

RSpec.configure do |c|
  c.output_stream = File.open('serverspec-result.json', 'w')
end

私が実行しているときkitchen test、それは私に次の警告を与えます:

RSpec's reporter has already been initialized with 
#<IO:<STDOUT>> as the output stream,
so your change to `output_stream` will be ignored. 
You should configure it earlier for it to take effect.
4

0 に答える 0