Class: Cucumber::Rake::Task::RCovCucumberRunner
- Inherits:
-
ForkedCucumberRunner
- Object
- ForkedCucumberRunner
- Cucumber::Rake::Task::RCovCucumberRunner
- Defined in:
- lib/cucumber/rake/task.rb
Overview
:nodoc:
Instance Method Summary collapse
- #cmd ⇒ Object
-
#initialize(libs, cucumber_bin, cucumber_opts, bundler, feature_files, rcov_opts) ⇒ RCovCucumberRunner
constructor
A new instance of RCovCucumberRunner.
Methods inherited from ForkedCucumberRunner
#bundler_gem_available?, #load_path, #quoted_binary, #run, #use_bundler
Constructor Details
#initialize(libs, cucumber_bin, cucumber_opts, bundler, feature_files, rcov_opts) ⇒ RCovCucumberRunner
Returns a new instance of RCovCucumberRunner.
108 109 110 111 |
# File 'lib/cucumber/rake/task.rb', line 108 def initialize(libs, cucumber_bin, cucumber_opts, bundler, feature_files, rcov_opts) super( libs, cucumber_bin, cucumber_opts, bundler, feature_files ) @rcov_opts = rcov_opts end |
Instance Method Details
#cmd ⇒ Object
113 114 115 116 117 118 119 120 121 |
# File 'lib/cucumber/rake/task.rb', line 113 def cmd if use_bundler [Cucumber::RUBY_BINARY, '-S', 'bundle', 'exec', 'rcov', @rcov_opts, quoted_binary(@cucumber_bin), '--', @cucumber_opts, @feature_files].flatten else [Cucumber::RUBY_BINARY, '-I', load_path(@libs), '-S', 'rcov', @rcov_opts, quoted_binary(@cucumber_bin), '--', @cucumber_opts, @feature_files].flatten end end |