Class: Kender::TestUnit

Inherits:
Command show all
Defined in:
lib/kender/commands/test_unit.rb

Instance Attribute Summary

Attributes inherited from Command

#success

Instance Method Summary collapse

Methods inherited from Command

all, all_names, all_success?, commands, #execute, inherited, #name, #run

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/kender/commands/test_unit.rb', line 4

def available?
  in_gemfile?('test-unit') and not(ENV['VALIDATE_PROJECT'])
end

#commandObject



8
9
10
11
12
13
14
# File 'lib/kender/commands/test_unit.rb', line 8

def command
  if defined?(ParallelTests)
    'bundle exec rake parallel:test'
  else
    'bundle exec rake test'
  end
end