Sha256: 520b647f9836bfc08bdb228535f9882dda90fa2419e286618aebaa8ccc31901a

Contents?: true

Size: 632 Bytes

Versions: 1

Compression:

Stored size: 632 Bytes

Contents

require 'ostruct'
require 'albacore/support/openstruct'

module Configuration
  module SpecFlowReport
    @specflowreportconfig = OpenStruct.new.extend(OpenStructToHash)

    def self.specflowreportconfig
      @specflowreportconfig
    end

    def specflowreport
      config = SpecFlowReport.specflowreportconfig
      yield(config) if block_given?
      config
    end

    def self.included(obj)
      specflowreportconfig.command = 'specflow.exe'
      specflowreportconfig.report = 'nunitexecutionreport'
    end
  end
end

class Albacore::Configuration
  include Configuration::SpecFlowReport
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.2.0.preview1 lib/albacore/config/specflowreportconfig.rb