spec: rake task for non parallel_exclude tests
Change-Id: I45379aacc391b68003c7ff66239d175a2a362e9f Reviewed-on: https://gerrit.instructure.com/28663 Reviewed-by: Bryan Madsen <bryan@instructure.com> QA-Review: Bryan Madsen <bryan@instructure.com> Product-Review: Bryan Madsen <bryan@instructure.com> Tested-by: Shawn Meredith <shawn@instructure.com>
This commit is contained in:
parent
ef58f6d48c
commit
c126c17f5b
|
@ -14,7 +14,6 @@ unless ARGV.any? { |a| a =~ /\Agems/ }
|
|||
end
|
||||
|
||||
task :nonselenium, :count do |t, args|
|
||||
|
||||
Rake::Task['spec:single'].execute #first rake task to run the files that fail in parallel in a single thread
|
||||
|
||||
if File.zero?('tmp/parallel_log/rspec.failures')
|
||||
|
@ -25,6 +24,14 @@ unless ARGV.any? { |a| a =~ /\Agems/ }
|
|||
|
||||
end
|
||||
|
||||
task :nonseleniumallparallel, :count do |t, args|
|
||||
require "parallelized_specs"
|
||||
count = args[:count]
|
||||
test_files = FileList['vendor/plugins/*/spec_canvas/**/*_spec.rb'].exclude('vendor/plugins/*/spec_canvas/selenium/*_spec.rb') + FileList['spec/**/*_spec.rb'].exclude('spec/selenium/**/*_spec.rb')
|
||||
test_files.map! { |f| "#{Rails.root}/#{f}" }
|
||||
Rake::Task['parallel:spec'].invoke(count, '', '', test_files.join(' '))
|
||||
end
|
||||
|
||||
task :selenium, :count, :build_section do |t, args|
|
||||
require "parallelized_specs"
|
||||
#used to split selenium builds when :build_section is set split it in two.
|
||||
|
|
Loading…
Reference in New Issue