Class: Omnitest::ProjectSet
- Inherits:
-
Core::Dash
- Object
- Hashie::Dash
- Core::Dash
- Omnitest::ProjectSet
- Extended by:
- Core::Dash::Loadable
- Includes:
- Core::DefaultLogger, Core::Logging
- Defined in:
- lib/omnitest/project_set.rb
Overview
Omnitest::ProjectSet defines a set of projects that will be used for cross-project tasks and tests. It is generally defined and loaded from omnitest.yaml. Here’s an example project set:
The suites object defines the tests. Each object, under suites, like Katas or Tutorials in this example, represents a test suite. A test suite is subdivided into samples, that each act as a scenario. The global_env object and the env under each suite define (and standardize) the input for each test. The global_env values will be made available to all tests as environment variables, along with the env values for that specific test.
Instance Attribute Summary collapse
-
#projects ⇒ Hash[String => Omnitest::Project]
Required Attribute projects.
-
#workflows ⇒ Hash[String => Omnitest::Workflow]
Attribute workflows.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ProjectSet
constructor
A new instance of ProjectSet.
Methods inherited from Core::Dash
Constructor Details
#initialize(hash = {}) ⇒ ProjectSet
Returns a new instance of ProjectSet.
40 41 42 43 44 45 |
# File 'lib/omnitest/project_set.rb', line 40 def initialize(hash = {}) super projects.each do | name, project | project.name = name end end |
Instance Attribute Details
#projects ⇒ Hash[String => Omnitest::Project]
Required Attribute projects.
37 |
# File 'lib/omnitest/project_set.rb', line 37 required_field :projects, Hash[String => Omnitest::Project] |
#workflows ⇒ Hash[String => Omnitest::Workflow]
Attribute workflows.
38 |
# File 'lib/omnitest/project_set.rb', line 38 field :workflows, Hash[String => Omnitest::Workflow] |