Class: Kitchen::Suite
- Inherits:
-
Object
- Object
- Kitchen::Suite
- Defined in:
- lib/kitchen/suite.rb
Overview
A logical configuration representing a test case or fixture that will be executed on a platform.
Instance Attribute Summary collapse
-
#excludes ⇒ Array
readonly
Array of names of excluded platforms.
-
#includes ⇒ Array
readonly
Array of names of only included platforms.
-
#name ⇒ String
readonly
Logical name of this suite.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Suite
constructor
Constructs a new suite.
Constructor Details
#initialize(options = {}) ⇒ Suite
Constructs a new suite.
42 43 44 45 46 47 48 |
# File 'lib/kitchen/suite.rb', line 42 def initialize( = {}) @name = .fetch(:name) do raise ClientError, "Suite#new requires option :name" end @excludes = PlatformFilter.convert(.fetch(:excludes, [])) @includes = PlatformFilter.convert(.fetch(:includes, [])) end |
Instance Attribute Details
#excludes ⇒ Array (readonly)
Returns Array of names of excluded platforms.
30 31 32 |
# File 'lib/kitchen/suite.rb', line 30 def excludes @excludes end |
#includes ⇒ Array (readonly)
Returns Array of names of only included platforms.
33 34 35 |
# File 'lib/kitchen/suite.rb', line 33 def includes @includes end |
#name ⇒ String (readonly)
Returns logical name of this suite.
27 28 29 |
# File 'lib/kitchen/suite.rb', line 27 def name @name end |