Class: Pact::Provider::RSpec::Formatter
- Inherits:
-
RSpec::Core::Formatters::DocumentationFormatter
- Object
- RSpec::Core::Formatters::DocumentationFormatter
- Pact::Provider::RSpec::Formatter
- Defined in:
- lib/pact/provider/rspec/formatter_rspec_3.rb
Defined Under Namespace
Classes: NilFormatter
Instance Method Summary collapse
Instance Method Details
#dump_summary(summary) ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/pact/provider/rspec/formatter_rspec_3.rb', line 45 def dump_summary(summary) output.puts "\n" + colorized_totals_line(summary) return if summary.failure_count == 0 print_rerun_commands summary print_missing_provider_states end |
#example_group_started(notification) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/pact/provider/rspec/formatter_rspec_3.rb', line 25 def example_group_started(notification) # This is the metadata on the top level "Verifying a pact between X and Y" describe block if @group_level == 0 Pact.configuration.output_stream.puts pact_uri = notification.group.[:pactfile_uri] ::RSpec.configuration.failure_color = pact_uri.[:pending] ? :yellow : :red if pact_uri.[:notices] pact_uri.[:notices].before_verification_notices_text.each do | text | Pact.configuration.output_stream.puts("DEBUG: #{text}") end end criteria = notification.group.[:pact_criteria] Pact.configuration.output_stream.puts "DEBUG: Filtering interactions by: #{criteria}" if criteria && criteria.any? end super end |