Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reports-dir is always emptied #15

Open
kronn opened this issue Jul 6, 2015 · 1 comment
Open

reports-dir is always emptied #15

kronn opened this issue Jul 6, 2015 · 1 comment

Comments

@kronn
Copy link

kronn commented Jul 6, 2015

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

@shepmaster
Copy link
Member

@kronn sounds great! Please let me know how I can help shepherd your PR though. Fair warning, I may be a bit slow on responding, but I swear I read reports! 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants