balvig / utensils

Rspec stuff we use over and over again
MIT License
11 stars 9 forks source link

Add alternate poltergeist_debug driver #5

Closed l15n closed 8 years ago

l15n commented 8 years ago

To aid in debugging feature specs using Poltergeist, I want to be able to use remote debugging to use the Webkit inspector while the test is running.

After this change, running rspec with the POLTERGEIST_DEBUG envvar set will enable Poltergeist's inspector option for remote debugging.

e.g. POLTERGEIST_DEBUG=1 rspec spec/features/my_broken_feature.rb:100

Inserting page.driver.debug in examples will launch a browser to allow debugging with the Webkit Inspector

Reference: http://jonathanleighton.com/articles/2012/poltergeist-0-6-0/

WDYT @balvig ?

I'll also update the README if this proposal is acceptable.

balvig commented 8 years ago

👍 Thanks!

l15n commented 8 years ago

♻️ Updated README.

Merge at will 😄

balvig commented 8 years ago

1.5.0, thanks again!