Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix turbo_rspec formatters by sending real 'Start' notification (#26487)

David Taylorff6cb1bc059d
diff --git a/lib/turbo_tests/documentation_formatter.rb b/lib/turbo_tests/documentation_formatter.rb
index a9ded17108e..91b25c12c80 100644
--- a/lib/turbo_tests/documentation_formatter.rb
+++ b/lib/turbo_tests/documentation_formatter.rb
@@ -13,6 +13,7 @@ module TurboTests
)
def start(*args)
+ super(*args)
output.puts "::group:: Verbose turbo_spec output" if ENV["GITHUB_ACTIONS"]
end
diff --git a/lib/turbo_tests/reporter.rb b/lib/turbo_tests/reporter.rb
index 5204ff0e0ce..b2a1e2e1eb8 100644
--- a/lib/turbo_tests/reporter.rb
+++ b/lib/turbo_tests/reporter.rb
@@ -49,7 +49,7 @@ module TurboTests
end
def start
- delegate_to_formatters(:start, RSpec::Core::Notifications::NullNotification)
+ delegate_to_formatters(:start, RSpec::Core::Notifications::StartNotification.new)
end
def example_passed(example)