Last active
December 19, 2015 12:18
-
-
Save rajsahae/5953616 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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