Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/runtime/allure_report.rb')
-rw-r--r--qa/qa/runtime/allure_report.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/qa/runtime/allure_report.rb b/qa/qa/runtime/allure_report.rb
index 5f628050f3b..9ae04dbe111 100644
--- a/qa/qa/runtime/allure_report.rb
+++ b/qa/qa/runtime/allure_report.rb
@@ -76,6 +76,15 @@ module QA
RSpec.configure do |config|
config.add_formatter(AllureRspecFormatter)
config.add_formatter(QA::Support::Formatters::AllureMetadataFormatter)
+
+ config.append_after do |example|
+ Allure.add_attachment(
+ name: 'browser.log',
+ source: Capybara.current_session.driver.browser.logs.get(:browser).map(&:to_s).join("\n\n"),
+ type: Allure::ContentType::TXT,
+ test_case: true
+ )
+ end
end
end