Sha256: 233dae777c20600f978cb4bc9290cda37220a486e7c2644a192c8406459e8fe6
Contents?: true
Size: 1.64 KB
Versions: 2
Compression:
Stored size: 1.64 KB
Contents
require 'yaml' module Omnitest # 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: # # @example Project set defined in omnitest.yaml # --- # projects: # ruby: # language: 'ruby' # basedir: 'sdks/ruby' # git: # repo: 'https://github.com/omnitest/ruby_samples' # java: # language: 'java' # basedir: 'sdks/java' # git: # repo: 'https://github.com/omnitest/java_samples' # python: # language: 'python' # basedir: 'sdks/python' # git: # repo: 'https://github.com/omnitest/python_samples' # # 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. # class ProjectSet < Omnitest::Core::Dash include Core::DefaultLogger include Omnitest::Core::Logging extend Core::Dash::Loadable required_field :projects, Hash[String => Omnitest::Project] field :workflows, Hash[String => Omnitest::Workflow] def initialize(hash = {}) super projects.each do | name, project | project.name = name end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omnitest-0.2.2 | lib/omnitest/project_set.rb |
omnitest-0.2.1 | lib/omnitest/project_set.rb |