Tobias Gritschacher has uploaded a new change for review. https://gerrit.wikimedia.org/r/79799
Change subject: Generate report XML for selenium tests ...................................................................... Generate report XML for selenium tests Change-Id: If8ee815e91bb971ae6fbccb9064e18d08d5242d9 --- M selenium_cuc/config/cucumber.yml A selenium_cuc/features/support/sauce.rb 2 files changed, 11 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/99/79799/1 diff --git a/selenium_cuc/config/cucumber.yml b/selenium_cuc/config/cucumber.yml index ecb6857..8b7c877 100644 --- a/selenium_cuc/config/cucumber.yml +++ b/selenium_cuc/config/cucumber.yml @@ -1 +1,2 @@ +ci: --format Cucumber::Formatter::Sauce -out reports/junit default: --format progress diff --git a/selenium_cuc/features/support/sauce.rb b/selenium_cuc/features/support/sauce.rb new file mode 100644 index 0000000..e3f82f0 --- /dev/null +++ b/selenium_cuc/features/support/sauce.rb @@ -0,0 +1,10 @@ +require 'cucumber/formatter/junit' + +module Cucumber::Formatter + class Sauce < Junit + def format_exception(exception) + sauce_job_page = "Sauce Labs job URL: http://saucelabs.com/jobs/#{$session_id}\n" + ([sauce_job_page] + ["#{exception.message} (#{exception.class})"] + exception.backtrace).join("\n") + end + end +end \ No newline at end of file -- To view, visit https://gerrit.wikimedia.org/r/79799 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If8ee815e91bb971ae6fbccb9064e18d08d5242d9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Tobias Gritschacher <tobias.gritschac...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits