Closed l15n closed 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.
POLTERGEIST_DEBUG
inspector
e.g. POLTERGEIST_DEBUG=1 rspec spec/features/my_broken_feature.rb:100
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
page.driver.debug
Reference: http://jonathanleighton.com/articles/2012/poltergeist-0-6-0/
WDYT @balvig ?
I'll also update the README if this proposal is acceptable.
👍 Thanks!
♻️ Updated README.
Merge at will 😄
1.5.0, thanks again!
1.5.0
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'sinspector
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 InspectorReference: http://jonathanleighton.com/articles/2012/poltergeist-0-6-0/
WDYT @balvig ?
I'll also update the README if this proposal is acceptable.