Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-673

MultiTest options are broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.11, 1.4.12
    • None
    • Test frameworks
    • None
    • All

    Description

      Documentation indicates that the ":options" to MultiTest is a hash with keys like ":junit" or ":testng" and values a hash of options to be passed to that test framework. But, in fact, the entire ":options" hash is passed to each framework.

      In particular, tests.rb line 392 (see context below) reads "f.new(task,options)" but should read "f.new(task, framework_options)" ("framework_options" is otherwise an unread variable in tests.rb.)

      def initialize(task, options) #:nodoc:
      super
      fail "Missing :frameworks option" unless options[:frameworks]
      @frameworks = options[:frameworks].map do |f|
      framework_options = (options[:options] || {})[f.to_sym] || {}
      f.new(task, options)
      end
      end

      Attachments

        Activity

          People

            pdonald Peter Donald
            dzhaughn John Roth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: