Module: Datadog::CI::Contrib::RSpec::ExampleGroup::ClassMethods
- Defined in:
- lib/datadog/ci/contrib/rspec/example_group.rb
Overview
Instance methods for configuration
Instance Method Summary collapse
Instance Method Details
#run(reporter = ::RSpec::Core::NullReporter) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/datadog/ci/contrib/rspec/example_group.rb', line 18 def run(reporter = ::RSpec::Core::NullReporter) return super unless configuration[:enabled] return super unless top_level? test_suite = Datadog::CI.start_test_suite(file_path) result = super if result test_suite.passed! else test_suite.failed! end test_suite.finish result end |