Sha256: d6df1670c76bc12304ccc44178fb8c4155e81eaea13a6abd88f30b4461085db4
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
require 'allure-ruby-adaptor-api' require 'turnip' require 'allure_turnip/version' require 'allure_turnip/formatter' require 'allure_turnip/adaptor' require 'allure_turnip/dsl' require 'allure_turnip/hooks' require 'allure_turnip/turnip_extension' module AllureTurnip module Config class << self attr_accessor :output_dir, :clean_dir, :logging_level, :feature_with_filename, :tms_prefix, :issue_prefix, :severity_prefix DEFAULT_OUTPUT_DIR = 'gen/allure-results' DEFAULT_LOGGING_LEVEL = Logger::DEBUG DEFAULT_FEATURE_WITH_FILENAME = false DEFAULT_TMS_PREFIX = '@TMS:' DEFAULT_ISSUE_PREFIX = '@ISSUE:' DEFAULT_SEVERITY_PREFIX = '@SEVERITY:' def output_dir @output_dir || DEFAULT_OUTPUT_DIR end def clean_dir? @clean_dir.nil? ? true : @clean_dir end def logging_level @logging_level || DEFAULT_LOGGING_LEVEL end def feature_with_filename? @feature_with_filename || DEFAULT_FEATURE_WITH_FILENAME end def tms_prefix @tms_prefix || DEFAULT_TMS_PREFIX end def issue_prefix @issue_prefix || DEFAULT_ISSUE_PREFIX end def severity_prefix @severity_prefix || DEFAULT_SEVERITY_PREFIX end end end class Context attr_accessor :rspec def rspec @rspec end end class << self def context @context ||= Context.new end end class << self def configure(&block) yield Config AllureRubyAdaptorApi.configure { |c| c.output_dir = Config.output_dir c.logging_level = Config.logging_level } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
allure_turnip-0.4.0 | lib/allure_turnip.rb |