Class: Omnitest::Configuration
- Inherits:
-
Omnitest::Core::Dash
- Object
- Hashie::Dash
- Omnitest::Core::Dash
- Omnitest::Configuration
- Extended by:
- Forwardable
- Defined in:
- lib/omnitest/configuration.rb
Instance Attribute Summary collapse
-
#concurrency ⇒ Integer
Attribute concurrency.
-
#dry_run ⇒ Object
Attribute dry_run.
-
#log_level ⇒ Symbol
Attribute log_level.
-
#log_root ⇒ Pathname
Attribute log_root.
-
#travis ⇒ Object
Attribute travis.
Instance Method Summary collapse
- #clear ⇒ Object
- #default_logger ⇒ Object
- #project_set ⇒ Object
- #project_set=(project_set_data) ⇒ Object (also: #load_project_set)
- #skeptic ⇒ Object
Methods inherited from Omnitest::Core::Dash
Instance Attribute Details
#concurrency ⇒ Integer
Attribute concurrency.
14 |
# File 'lib/omnitest/configuration.rb', line 14 field :concurrency, Integer |
#dry_run ⇒ Object
Attribute dry_run. false
10 |
# File 'lib/omnitest/configuration.rb', line 10 field :dry_run, Object, default: false |
#log_level ⇒ Symbol
Attribute log_level. info
12 |
# File 'lib/omnitest/configuration.rb', line 12 field :log_level, Symbol, default: :info |
#log_root ⇒ Pathname
Attribute log_root. .omnitest/logs
11 |
# File 'lib/omnitest/configuration.rb', line 11 field :log_root, Pathname, default: '.omnitest/logs' |
#travis ⇒ Object
Attribute travis. false
13 |
# File 'lib/omnitest/configuration.rb', line 13 field :travis, Object, default: false |
Instance Method Details
#clear ⇒ Object
46 47 48 49 |
# File 'lib/omnitest/configuration.rb', line 46 def clear skeptic.clear super end |
#default_logger ⇒ Object
27 28 29 |
# File 'lib/omnitest/configuration.rb', line 27 def default_logger @default_logger ||= ProjectLogger.new(stdout: $stdout, level: Core::Util.to_logger_level(log_level)) end |
#project_set ⇒ Object
31 32 33 |
# File 'lib/omnitest/configuration.rb', line 31 def project_set @project_set ||= load_project_set('omnitest.yaml') end |
#project_set=(project_set_data) ⇒ Object Also known as: load_project_set
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/omnitest/configuration.rb', line 35 def project_set=(project_set_data) if project_set_data.is_a? Skeptic::TestManifest @project_set = project_set_data else @project_set = ProjectSet.from_yaml project_set_data end @project_set rescue Errno::ENOENT => e raise UserError, "Could not load test manifest: #{e.}" end |
#skeptic ⇒ Object
23 24 25 |
# File 'lib/omnitest/configuration.rb', line 23 def skeptic Skeptic.configuration end |