Class: Allure::Config
- Inherits:
-
Object
- Object
- Allure::Config
- Includes:
- Singleton
- Defined in:
- lib/allure_ruby_commons/config.rb
Overview
Allure configuration class
Constant Summary collapse
- LOGLEVELS =
Returns valid log levels.
%w[DEBUG INFO WARN ERROR FATAL UNKNOWN].freeze
Instance Attribute Summary collapse
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#clean_results_directory ⇒ Object
Returns the value of attribute clean_results_directory.
-
#environment ⇒ String
Allure environment.
-
#environment_properties ⇒ Object
Returns the value of attribute environment_properties.
-
#failure_exception ⇒ Class
Exception class that corresponds to test failure.
-
#link_issue_pattern ⇒ Object
Returns the value of attribute link_issue_pattern.
-
#link_tms_pattern ⇒ Object
Returns the value of attribute link_tms_pattern.
-
#logger ⇒ Logger
Logger instance.
-
#logging_level ⇒ Object
Returns the value of attribute logging_level.
-
#results_directory ⇒ Object
Returns the value of attribute results_directory.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
Instance Attribute Details
#categories ⇒ Object
Returns the value of attribute categories.
17 18 19 |
# File 'lib/allure_ruby_commons/config.rb', line 17 def categories @categories end |
#clean_results_directory ⇒ Object
Returns the value of attribute clean_results_directory.
17 18 19 |
# File 'lib/allure_ruby_commons/config.rb', line 17 def clean_results_directory @clean_results_directory end |
#environment ⇒ String
Allure environment
33 34 35 36 37 |
# File 'lib/allure_ruby_commons/config.rb', line 33 def environment return(@environment) if defined?(@environment) @environment ||= ENV["ALLURE_ENVIRONMENT"] end |
#environment_properties ⇒ Object
Returns the value of attribute environment_properties.
17 18 19 |
# File 'lib/allure_ruby_commons/config.rb', line 17 def environment_properties @environment_properties end |
#failure_exception ⇒ Class
Exception class that corresponds to test failure
49 50 51 |
# File 'lib/allure_ruby_commons/config.rb', line 49 def failure_exception @failure_exception ||= RSpec::Expectations::ExpectationNotMetError end |
#link_issue_pattern ⇒ Object
Returns the value of attribute link_issue_pattern.
17 18 19 |
# File 'lib/allure_ruby_commons/config.rb', line 17 def link_issue_pattern @link_issue_pattern end |
#link_tms_pattern ⇒ Object
Returns the value of attribute link_tms_pattern.
17 18 19 |
# File 'lib/allure_ruby_commons/config.rb', line 17 def link_tms_pattern @link_tms_pattern end |
#logger ⇒ Logger
Logger instance
42 43 44 |
# File 'lib/allure_ruby_commons/config.rb', line 42 def logger @logger ||= Logger.new($stdout, level: logging_level) end |
#logging_level ⇒ Object
Returns the value of attribute logging_level.
17 18 19 |
# File 'lib/allure_ruby_commons/config.rb', line 17 def logging_level @logging_level end |
#results_directory ⇒ Object
Returns the value of attribute results_directory.
17 18 19 |
# File 'lib/allure_ruby_commons/config.rb', line 17 def results_directory @results_directory end |