Skip to content

Instantly share code, notes, and snippets.

View juanger's full-sized avatar

Juan Germán Castañeda Echevarría juanger

View GitHub Profile
@juanger
juanger / failures_formatter.rb
Last active May 27, 2020 17:17 — forked from dblock/failures_formatter.rb
Rerun rspec failed tests and merge junit reports for jenkins.
# inspired by https://github.com/rspec/rspec-core/pull/596
require 'rspec/core/formatters/base_formatter'
module RSpec
module Core
module Formatters
class FailuresFormatter < BaseFormatter
def dump_failures
return if failed_examples.empty?