Module: Datadog::CI::Contrib::RSpec::DocumentationFormatter::InstanceMethods
- Defined in:
- lib/datadog/ci/contrib/rspec/documentation_formatter.rb
Instance Method Summary collapse
- #dump_summary(notification) ⇒ Object
- #example_failed(notification) ⇒ Object
- #example_passed(notification) ⇒ Object
- #example_pending(notification) ⇒ Object
Instance Method Details
#dump_summary(notification) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/datadog/ci/contrib/rspec/documentation_formatter.rb', line 30 def dump_summary(notification) super return unless @dd_flaky_tests || @dd_quarantined_tests || @dd_disabled_tests || @dd_skipped_by_tia_tests summary = "\nDatadog Test Optimization Summary:\n" summary << "#{@dd_flaky_tests} flaky detected " if @dd_flaky_tests&.positive? summary << "#{@dd_quarantined_tests} quarantined " if @dd_quarantined_tests&.positive? summary << "#{@dd_disabled_tests} disabled " if @dd_disabled_tests&.positive? summary << "#{@dd_skipped_by_tia_tests} skipped by test impact analysis " if @dd_skipped_by_tia_tests&.positive? summary << "\n" output.puts summary end |
#example_failed(notification) ⇒ Object
18 19 20 21 22 |
# File 'lib/datadog/ci/contrib/rspec/documentation_formatter.rb', line 18 def example_failed(notification) super dd_example_finished(notification.example) end |
#example_passed(notification) ⇒ Object
12 13 14 15 16 |
# File 'lib/datadog/ci/contrib/rspec/documentation_formatter.rb', line 12 def example_passed(notification) super dd_example_finished(notification.example) end |
#example_pending(notification) ⇒ Object
24 25 26 27 28 |
# File 'lib/datadog/ci/contrib/rspec/documentation_formatter.rb', line 24 def example_pending(notification) super dd_example_finished(notification.example) end |