Sha256: 084a208ba387191e403323c8d53e961784f61a1deaf57557d0aee901893767fd
Contents?: true
Size: 760 Bytes
Versions: 18
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true <%=- ERB.new(File.read(File.expand_path('./partials/allure_requirements.tt', __dir__))).result(binding).strip! -%> <%- allure = ERB.new(File.read(File.expand_path('./partials/allure_imports.tt', __dir__))).result(binding).strip! -%> module AllureHelper class << self def configure <%= allure %>.configure do |config| config.results_directory = 'allure-results' config.clean_results_directory = true end end def add_screenshot(name, file) Allure.add_attachment( name:, source: file, type: Allure::ContentType::PNG, test_case: true ) end <%- if rspec? -%> def formatter AllureRspecFormatter end <%- end -%> end end
Version data entries
18 entries across 18 versions & 1 rubygems