Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Losing output #173

Open
jonahwh opened this issue Nov 4, 2014 · 1 comment
Open

Losing output #173

jonahwh opened this issue Nov 4, 2014 · 1 comment

Comments

@jonahwh
Copy link
Contributor

jonahwh commented Nov 4, 2014

Occasionally, my test suite will stop displaying output with the following error.

        stream closed

/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/reporter/stdout.rb:182:in `write'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/reporter/stdout.rb:182:in `puts'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/reporter/stdout.rb:182:in `output_step'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/reporter/stdout.rb:66:in `on_successful_step'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/reporter.rb:38:in `block (2 levels) in bind'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:97:in `call'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:97:in `block in run_hook'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:97:in `each'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:97:in `run_hook'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:28:in `block in hook'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/scenario_runner.rb:78:in `run_step'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/scenario_runner.rb:57:in `block (2 levels) in run'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/scenario_runner.rb:51:in `each'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/scenario_runner.rb:51:in `block in run'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:81:in `call'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:81:in `block (3 levels) in run_around_hook'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/reporter.rb:59:in `around_scenario_run'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/reporter.rb:36:in `block (2 levels) in bind'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:80:in `call'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:80:in `block (2 levels) in run_around_hook'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:84:in `call'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:84:in `run_around_hook'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/hookable.rb:44:in `block in around_hook'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/scenario_runner.rb:48:in `run'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/feature_runner.rb:69:in `block in run_scenarios!'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/feature_runner.rb:67:in `each'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/feature_runner.rb:67:in `each_with_index'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/feature_runner.rb:67:in `run_scenarios!'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner/feature_runner.rb:48:in `run'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner.rb:78:in `block in run'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner.rb:74:in `each'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/runner.rb:74:in `run'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/lib/spinach/cli.rb:27:in `run'
/home/rof/cache/bundler/ruby/2.1.0/gems/spinach-0.8.10/bin/spinach:15:in `<top (required)>'
/home/rof/cache/bundler/ruby/2.1.0/bin/spinach:23:in `load'
/home/rof/cache/bundler/ruby/2.1.0/bin/spinach:23:in `<main>'

Ruby v 2.1.4p265
Rails v 4.1.6

@jonahwh
Copy link
Contributor Author

jonahwh commented Nov 5, 2014

This may be an issue in rails (rails/rails#13139). The monkeypatch suggested, https://gist.github.com/tommeier/9845210, didn't work for me. My simpelest monkeypatch solution was to just make a custom reporter that uses $stderr instead of $stdout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant