A platform for community discussion. Free, open, simple.
DEV: Improve turbo_rspec and flaky-test output (#35059)
David Taylore797bb5d5ff9
diff --git a/bin/turbo_rspec b/bin/turbo_rspecindex 0935a206748..c9dde030e73 100755--- a/bin/turbo_rspec+++ b/bin/turbo_rspec@@ -82,7 +82,7 @@ if ARGV.empty?run_system_tests = !!enable_system_tests- files = Dir.glob("#{Rails.root}/spec/**/*_spec.rb")+ files = Dir.glob("spec/**/*_spec.rb")files.reject! { |file| File.fnmatch("*spec/system*", file) } if !run_system_testsuse_runtime_info = true if use_runtime_info.nil?diff --git a/lib/turbo_tests/flaky/failed_example.rb b/lib/turbo_tests/flaky/failed_example.rbindex d84290c9aae..3ef98d37e62 100644--- a/lib/turbo_tests/flaky/failed_example.rb+++ b/lib/turbo_tests/flaky/failed_example.rb@@ -57,7 +57,13 @@ module TurboTestsenddef rerun_command- @failed_example.command_string+ @failed_example+ .command_string+ .sub(/TEST_ENV_NUMBER=\d*\s*/, "")+ .sub("RSPEC_SILENCE_FILTER_ANNOUNCEMENTS=1", "")+ .sub("DISCOURSE_RSPEC_PROFILE_EACH_EXAMPLE=1", "")+ .gsub(/--format \S+/, "")+ .gsub(/--out \S+/, "")enddef to_h