Sha256: b7de9525c0c259496d943f216390d82e4c5dde7bf12d3c46bd87410f96af586b
Contents?: true
Size: 662 Bytes
Versions: 17
Compression:
Stored size: 662 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" require "rspec/core/rake_task" RSpec::Core::RakeTask.new task :default => :spec task :test => :spec def rspec_out_file require 'rspec_junit_formatter' "-f RspecJunitFormatter -o results.xml" end namespace :spec do desc "Run all unit and integration tests" task :ci do rspec_out_file = nil sh "bundle exec rspec #{rspec_out_file} spec" end desc "Run perf tests" task :perf do rspec_out_file = nil sh "bundle exec ruby ./spec/benchmark/perf_test.rb" end desc "Run all tests and generate coverage xml" task :cov do sh "bundle exec rspec #{rspec_out_file} spec" end end
Version data entries
17 entries across 17 versions & 2 rubygems