Skip to content

Instantly share code, notes, and snippets.

@mfittko
Last active August 3, 2020 09:07
Show Gist options
  • Save mfittko/d262267f60e4b97ce4274bd4793b50d3 to your computer and use it in GitHub Desktop.
Save mfittko/d262267f60e4b97ce4274bd4793b50d3 to your computer and use it in GitHub Desktop.
In order to have full working coverage (includign lib folder) we needed to make sure to start simplecov coverage reporting befor the knapsack rspec task was invoked...
#!/usr/bin/env ruby
require_relative '../../spec/support/simple_cov_helper.rb'
SimpleCovHelper.report_coverage('integration')
load "#{Gem::Specification.find_by_name('knapsack_pro').gem_dir}/lib/tasks/queue/rspec.rake"
Rake::Task['knapsack_pro:queue:rspec'].invoke('--format doc --format RSpec::Instafail --tag ~skip --format RspecJunitFormatter --out tmp/test_results/spec/integration.xml')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment