Sha256: c019f8086d527815cbe1338111bd248fe97eb2373cb417a7deb7afcc347d680f
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
require "baleen/task/task" module Baleen module Task class Cucumber < Baleen::Task::Base include Serializable include Baleen::Default attr_reader :target_files def initialize(opt) super() @params[:bin] = opt[:bin] || "bundle exec cucumber" @params[:options] = opt[:options] @params[:work_dir] = opt[:work_dir] || default_work_dir @params[:files] = opt[:files] || default_features @params[:concurrency] = opt[:concurrency] || default_concurrency @params[:before_command] = opt[:before_command] || default_before_command @params[:image] = opt[:image] @params[:command] = opt[:command] @params[:results] = opt[:results] @params[:status] = opt[:status] @params[:commit] = nil end def prepare task = Generic.new( work_dir: work_dir, image: image, command: %{find #{files} | grep "\\.feature"} ) runner = Baleen::Runner.new(task) result = runner.run @target_files = result[:stdout] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baleen-0.2.5 | lib/baleen/task/cucumber.rb |
baleen-0.2.4 | lib/baleen/task/cucumber.rb |