16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/datadog/ci/contrib/minitest/reporter.rb', line 16
def report(*args)
return super unless datadog_configuration[:enabled]
res = super
active_test_session = CI.active_test_session
active_test_module = CI.active_test_module
return res if active_test_session.nil? || active_test_module.nil?
if passed?
active_test_module.passed!
active_test_session.passed!
else
active_test_module.failed!
active_test_session.failed!
end
active_test_module.finish
active_test_session.finish
res
end
|