After updating to 1.2.0 the coverage report is generated in coverage instead of log/coverage/js.
I've had a look through the source code and I believe the issue is in how the arguments are passed to istanbul in the generate_report method of lib/teaspoon/coverage.rb:
Open3.capture2e(
@executable, "report", "--include=#{input.shellescape}", "--dir #{output_path}", format
)
should be:
Open3.capture2e(
@executable, "report", "--include=#{input.shellescape}", "--dir", output_path, format
)
I just upgraded teaspoon from 1.1.5 to 1.2.0 and noticed that the HTML coverage report is no longer generated in the directory that I have configured.
My configuration in
teaspoon_env.rb
looks like this:After updating to 1.2.0 the coverage report is generated in
coverage
instead oflog/coverage/js
.I've had a look through the source code and I believe the issue is in how the arguments are passed to istanbul in the
generate_report
method oflib/teaspoon/coverage.rb
:should be: