Sha256: 113e75c6f084bd464d58ceeb4c4d322826a3c1ff703a2658eec3bf5e4408ea6d
Contents?: true
Size: 849 Bytes
Versions: 7
Compression:
Stored size: 849 Bytes
Contents
require 'allure-ruby-adaptor-api' require 'allure-rspec/version' require 'allure-rspec/formatter' require 'allure-rspec/adaptor' require 'allure-rspec/dsl' require 'allure-rspec/hooks' module AllureRSpec module Config class << self attr_accessor :output_dir attr_accessor :clean_dir DEFAULT_OUTPUT_DIR = 'gen/allure-results' def output_dir @output_dir || DEFAULT_OUTPUT_DIR end def clean_dir? @clean_dir.nil? ? true : @clean_dir 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 } end end end
Version data entries
7 entries across 7 versions & 1 rubygems