Skip to content

Commit 197c40e

Browse files
committed
Silence Puma output in test environment
Suppress Puma startup messages during test runs to reduce noise and make test output easier to read.
1 parent 6add0bd commit 197c40e

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

config/puma.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
3535
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
3636
environment ENV.fetch("RAILS_ENV") { "development" }
37+
38+
# Silence Puma output in test environment
39+
if ENV.fetch("RAILS_ENV", "development") == "test"
40+
quiet
41+
end
42+
3743
preload_app!
3844
# "worker" is the Puma term, not a background job.
3945
on_worker_boot do

spec/support/capybara.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616

1717
Capybara.javascript_driver = :chrome
1818
Capybara.default_max_wait_time = 5
19+
20+
# Silence Capybara server output
21+
Capybara.server = :puma, { Silent: true }

0 commit comments

Comments
 (0)