Sha256: 0eb30381b4911526615b45aae67659e894219d236832c07aecdb0bafbdf1ef42
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
require 'parallel' require_relative "application_generator" desc "Run the full suite using parallel_tests to run on multiple cores" task test: [:setup, :spec, :cucumber] desc "Create a test rails app for the parallel specs to run against" task :setup, [:rails_env, :template] do |_t, opts| ActiveAdmin::ApplicationGenerator.new(opts).generate end desc "Run the specs in parallel" task :spec do system("parallel_rspec --serialize-stdout --verbose spec/") end namespace :spec do %i(unit request).each do |type| desc "Run the #{type} specs in parallel" task type do system("parallel_rspec --serialize-stdout --verbose spec/#{type}") end end end desc "Run the cucumber scenarios in parallel" task cucumber: [:"cucumber:regular", :"cucumber:reloading"] namespace :cucumber do desc "Run the standard cucumber scenarios in parallel" task :regular do system("parallel_cucumber --serialize-stdout --verbose features/") end desc "Run the cucumber scenarios that test reloading" task :reloading do system("cucumber --profile class-reloading") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-1.4.2 | tasks/test.rake |
activeadmin-1.4.1 | tasks/test.rake |
activeadmin-1.4.0 | tasks/test.rake |