Skip to content

Instantly share code, notes, and snippets.

@rajsahae
Last active December 19, 2015 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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