Class: Taeval::Unittest::Runner
- Inherits:
-
Object
- Object
- Taeval::Unittest::Runner
- Defined in:
- lib/taeval/unittest/runner.rb
Instance Method Summary collapse
-
#initialize(config, output, reporter) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/taeval/unittest/runner.rb', line 16 def run cp_original if !@config.cmd.nil? cmd = @config.cmd elsif !@config.tool.nil? case @config.tool.to_sym when :gradle cmd = 'gradle test' else raise "Unittest: #{@config.tool} is not supported." end else raise 'Unittest: Unittest\'s tool or cmd should be defined.' end exec(cmd) end |