Open
Description
I noticed that ci:setup:rspec
has a dependency on ci:setup:spec_report_cleanup
. While this is great to ensure a clean slate for a gem or rails-app, I have a problem. I use rspec to test several puppet-modules, which means I have several distinct rake rspec
-invocations. Clearing the reports on the start of the CI-run is a sensible thing to do. I ended up working around the cleanup like this:
# main Rakefile
require 'ci/reporter/rake/rspec'
task :spec => 'ci:setup:spec_report_cleanup'
# each module's Rakefile
require 'ci/reporter/rake/rspec'
task :setup_ci_reporter do
setup_spec_opts("--format", "documentation")
end
task :spec => :setup_ci_reporter
I plan to create a PR for this, but cannot do this now. So for now I just leave this here to at least raise awareness to this edge-case and offer a potential solution.
A possible solution might resolve this issue together with #14 …