class Kitchen::Suite

A logical configuration representing a test case or fixture that will be executed on a platform.

@author Fletcher Nichol <fnichol@nichol.ca>

Attributes

excludes[R]

@return [Array] Array of names of excluded platforms

includes[R]

@return [Array] Array of names of only included platforms

name[R]

@return [String] logical name of this suite

Public Class Methods

new(options = {}) click to toggle source

Constructs a new suite.

@param [Hash] options configuration for a new suite @option options [String] :name logical name of this suit (Required) @option options [String] :excludes Array of names of excluded platforms @option options [String] :includes Array of names of only included

platforms
# File lib/kitchen/suite.rb, line 42
def initialize(options = {})
  @name = options.fetch(:name) do
    raise ClientError, "Suite#new requires option :name"
  end
  @excludes = PlatformFilter.convert(options.fetch(:excludes, []))
  @includes = PlatformFilter.convert(options.fetch(:includes, []))
end