I think you should look at
https://medium.com/@tjdracz/interactive-debug-sessions-in-rspec-with-capybara-6c4dec2619d3

Le 01/05/2019 à 15:22, Evette Martins a écrit :
> Sure, so I am using RubyMine to be able to do testing. The tests that
> I am trying to run are using capybara and javascript.
> Capybara.register_driver :chrome do |app|
>   Capybara::Selenium::Driver.new(app, :browser => :chrome)
> end #Capybara.configure { |config| config.default_host =
> 'localhost:3000' } Capybara.javascript_driver = :chrome
> So my test is failing to login, but I believe the issue is relating to 
> another gem we are using.
> We want to debug the Webserver that capybara is using whilst running Rspec if 
> that makes sense, to see what data it has?
>
> On Wed, May 1, 2019 at 2:11 PM Benoit Tigeot <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Hello Evette
>
>     We need more info to help you. What do you mean by?
>
>     > But is there a way to debug through the web server whilst RSpec
>     tests are running?
>
>     Regards
>
>     Le 01/05/2019 à 14:56, Evette a écrit :
>>     I am able to debug my rspec test file through RubyMine and I can
>>     use the step through debugger which has been super helpful.
>>     But is there a way to debug through the web server whilst RSpec
>>     tests are running?
>>
>>     We are using the following:
>>
>>     rails (4.2.11, 4.2.7)
>>
>>     puma (3.12.1, 3.12.0)
>>
>>     ruby 2.3.3p222
>>
>>     -- 
>>     You received this message because you are subscribed to the
>>     Google Groups "rspec" group.
>>     To unsubscribe from this group and stop receiving emails from it,
>>     send an email to [email protected]
>>     <mailto:[email protected]>.
>>     To post to this group, send email to [email protected]
>>     <mailto:[email protected]>.
>>     To view this discussion on the web visit
>>     
>> https://groups.google.com/d/msgid/rspec/b534176f-d97b-46ba-92b1-dfdd25e0c798%40googlegroups.com
>>     
>> <https://groups.google.com/d/msgid/rspec/b534176f-d97b-46ba-92b1-dfdd25e0c798%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>     For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/CAAQHF755WXPJ9mAMtEKHY9vYfm7veiAt7X9Ox6K2KAUdkXuNgA%40mail.gmail.com
> <https://groups.google.com/d/msgid/rspec/CAAQHF755WXPJ9mAMtEKHY9vYfm7veiAt7X9Ox6K2KAUdkXuNgA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/b8addb5d-b126-5161-6df8-43f0dc3d7e51%40hopsandfork.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to