CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/allure_config.rb
Views: 1903
1
require "allure-rspec"
2
3
AllureRspec.configure do |config|
4
config.results_directory = "tmp/allure-raw-data"
5
config.clean_results_directory = true
6
config.logging_level = Logger::INFO
7
config.logger = Logger.new($stdout, Logger::DEBUG)
8
config.environment = RbConfig::CONFIG['host_os']
9
10
# Add additional metadata to allure
11
environment_properties = {
12
host_os: RbConfig::CONFIG['host_os'],
13
ruby_version: RUBY_VERSION,
14
host_runner_image: ENV['HOST_RUNNER_IMAGE'],
15
}.compact
16
session_name = ENV['SESSION']
17
session_runtime_version = ENV['SESSION_RUNTIME_VERSION']
18
if session_name.present?
19
environment_properties[:session_name] = session_name
20
if session_runtime_version.present?
21
environment_properties[:session_runtime_version] = "#{session_name}#{session_runtime_version}"
22
end
23
end
24
environment_properties[:runtime_version] = ENV['RUNTIME_VERSION']
25
26
config.environment_properties = environment_properties.compact
27
end
28
29