Skip to content

Instantly share code, notes, and snippets.

@rajsahae
Last active December 19, 2015 12:18
Show Gist options
  • Save rajsahae/5953616 to your computer and use it in GitHub Desktop.
Save rajsahae/5953616 to your computer and use it in GitHub Desktop.
require 'rookie'
namespace :test do
desc "description of some test"
task :some_test do
dir = File.expand_path(__FILE__)
rspec_command = "rspec --no-color --format documentation --out"
outpath = "#{dir}/test-results.#{Time.now.strftime("%Y.%m.%d")}.txt"
filepath = "spec/test/*"
command = [rspec_command, outpath, filepath]*' '
system( command )
end
end
Rookie::Tasks.new('mygem.gemspec').define_tasks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment