Sha256: e287be8d15dae7ecd0ea8561c6a13a3b3694698c41ee7f7a043b60db61309fe9
Contents?: true
Size: 928 Bytes
Versions: 16
Compression:
Stored size: 928 Bytes
Contents
require 'rake' namespace :tarantula do desc 'Run tarantula tests.' task :test do rm_rf "tmp/tarantula" task = Rake::TestTask.new(:tarantula_test) do |t| t.libs << 'test' t.pattern = 'test/tarantula/**/*_test.rb' t.verbose = true end Rake::Task[:tarantula_test].invoke end desc 'Run tarantula tests and open results in your browser.' task :report => :test do Dir.glob("tmp/tarantula/**/index.html") do |file| if PLATFORM['darwin'] system("open #{file}") elsif PLATFORM[/linux/] system("firefox #{file}") else puts "You can view tarantula results at #{file}" end end end desc 'Generate a default tarantula test' task :setup do mkdir_p "test/tarantula" template_path = File.expand_path(File.join(File.dirname(__FILE__), "..", "template", "tarantula_test.rb")) cp template_path, "test/tarantula/" end end
Version data entries
16 entries across 16 versions & 3 rubygems