Sha256: c6eae2aa7f07f05af1fbe14e1e7cfde7cf6b172cf4ea69631425abae7d08fa4a

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

require "albacore/albacoretask"
require "albacore/config/specflowconfig"

class SpecFlow
  TaskName = :specflow
  
  include Albacore::Task
  include Albacore::RunCommand
  include Configuration::SpecFlow
  
  attr_accessor :report, 
                :project
  
  def initialize()
    super()
    update_attributes(specflow.to_hash)
  end
  
  def execute()
    result = run_command("specflow", build_parameters)
    fail_with_message("SpecFlow failed, see the build log for more details.") unless result
  end  
    	
  def build_parameters
    p = []
    p << @report
    p << "\"#{@project}\""
    p
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/specflow.rb
albacore-1.0.0.rc.3 lib/albacore/specflow.rb