Class: GitlabQuality::TestTooling::TestQuarantine::QuarantineFormatter

Inherits:
RSpec::Core::Formatters::BaseFormatter
  • Object
show all
Includes:
QuarantineHelper
Defined in:
lib/gitlab_quality/test_tooling/test_quarantine/quarantine_formatter.rb

Instance Method Summary collapse

Methods included from QuarantineHelper

#filters, #filters_other_than_quarantine, #quarantine_message, #should_skip_when_focused?, #skip_or_run_quarantined_tests_or_contexts

Instance Method Details

#example_group_started(example_group_notification) ⇒ void

This method returns an undefined value.

Starts example group

Parameters:

  • example_group_notification (RSpec::Core::Notifications::GroupNotification)


20
21
22
23
24
# File 'lib/gitlab_quality/test_tooling/test_quarantine/quarantine_formatter.rb', line 20

def example_group_started(example_group_notification)
  group = example_group_notification.group

  skip_or_run_quarantined_tests_or_contexts(group)
end

#example_started(example_notification) ⇒ void

This method returns an undefined value.

Starts example

Parameters:

  • example_notification (RSpec::Core::Notifications::ExampleNotification)


29
30
31
32
33
34
# File 'lib/gitlab_quality/test_tooling/test_quarantine/quarantine_formatter.rb', line 29

def example_started(example_notification)
  example = example_notification.example

  # if skip propagated from example_group, do not reset skip metadata
  skip_or_run_quarantined_tests_or_contexts(example) unless example.[:skip]
end