Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4.11, 1.4.12
-
None
-
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