Module: Datadog::CI::Contrib::Minitest::Test::ClassMethods

Defined in:
lib/datadog/ci/contrib/minitest/test.rb

Instance Method Summary collapse

Instance Method Details

#datadog_itr_unskippable(*args) ⇒ Object



92
93
94
95
96
97
98
# File 'lib/datadog/ci/contrib/minitest/test.rb', line 92

def datadog_itr_unskippable(*args)
  if args.nil? || args.empty?
    @datadog_itr_unskippable_suite = true
  else
    @datadog_itr_unskippable_tests = args
  end
end

#dd_suite_unskippable?Boolean

Returns:

  • (Boolean)


100
101
102
# File 'lib/datadog/ci/contrib/minitest/test.rb', line 100

def dd_suite_unskippable?
  @datadog_itr_unskippable_suite
end

#dd_test_unskippable?(test_name) ⇒ Boolean

Returns:

  • (Boolean)


104
105
106
107
108
# File 'lib/datadog/ci/contrib/minitest/test.rb', line 104

def dd_test_unskippable?(test_name)
  return false unless @datadog_itr_unskippable_tests

  @datadog_itr_unskippable_tests.include?(test_name)
end