← Back to Upcase

Tmux split window and guard-zeus


(Shankar Dhanasekaran) #1

As can be seen in the attached file, I am running zeus and guard-zeus so that my tests are done quickly. I am using a split pane so that I can see the results quickly. However, as you can see the zeus server info alone takes almost the entire pane size and I still have to scroll the pane to see my error in detail. Is there a way to use zeus but still hide all those zeus related info when running guard?

Edit: seems like the attached image is not shown properly. I tried twice but still no luck. basically my screen is split 80:20 ratio. I am using vim in 80% pane and running guard in 20% pane. Zeus info takes up all screen leaving only little room to show the rspec errors.

Edit2: uploaded the image as per comment below.


(Jaroslav Janukevic) #2

Please upload the image to http://imgur.com/


(Shankar Dhanasekaran) #3


(Jaroslav Janukevic) #4

If I understand correctly you are annoyed by zeus start output and from what I see you are running only

bundle exec guard

This will restart the server all the time, what you should do, is to open a new tab in tmux, run in it

zeus start

Go back to your vim tab and in that 20% split tab run

bundle exec guard


(Shankar Dhanasekaran) #5

Thanks @janukevic for your helpful answer. I’m using guard, guard-zeus, guard-rspec.

guard-zeus setup needs to be done like below, as per https://github.com/qnm/guard-zeus

guard init zeus

and running guard automatically starts zeus.

As per your suggestion, if I run zeus start in one terminal and bundle exec guard in another terminal, I get the following error message when starting guard

Unable to accept socket connection. It looks like Zeus is already
running. If not, remove .zeus.sock and try again.

Still guard works fine and I am not seeing the annoying zeus info filling up my guard screen. Just wanted to know if this warning is normal and if there is any way to do this cleanly without warnings?


(Jaroslav Janukevic) #6

I never solved the guard-zeus problem. guard-rspec has support for zeus so just follow instructions here

http://blog.andywaite.com/2012/12/05/zeus-cucumber-guard/

or in short
remove guard-zeus
put guard-rspec into your gemfile
guard init rspec
make your Guardfile look like this

guard 'rspec', zeus: true, bundler: false do

zeus start in another tab, guard in the 20% one and it should work just fine, without any error message about zeus already running.


(Shankar Dhanasekaran) #7

thanks @janukevic it works wonderful. Just another question. rspec output is liberally spaced. Is there a way, I can change the format of the output so that it’s bit condensed?


(Jaroslav Janukevic) #8

Pick one from here https://github.com/rspec/rspec-core/tree/master/lib/rspec/core/formatters or write your own.