You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Rails 6 app which uses Spring, and whenever I run a "normal" rspec unit test, my tests run quickly after my first boot of the day.
I've noticed however that when I run a JS enabled system/feature test, the first request to my server always take a boat load (30+ seconds) of time, seemingly when it is rendering the first view. After that first request, the rest of the requests are snappy.
Perhaps I am misunderstanding Spring, but am I wrong to expect that the Capybara.server should be able to fork from a preloaded spring process? Or would I need to somehow tell Capybara that its server is not just my rails app to boot, but also that it is spring-ified?
thanks!
The text was updated successfully, but these errors were encountered:
The capybara server is not managed by spring. It should be possible to capybara to reuse the spring server but currently there is no code in spring or capybara to do that. I think it depends on how capybara starts the application. If it uses the rails server command it will be able to get the cache.
I have a Rails 6 app which uses Spring, and whenever I run a "normal" rspec unit test, my tests run quickly after my first boot of the day.
I've noticed however that when I run a JS enabled system/feature test, the first request to my server always take a boat load (30+ seconds) of time, seemingly when it is rendering the first view. After that first request, the rest of the requests are snappy.
Perhaps I am misunderstanding Spring, but am I wrong to expect that the Capybara.server should be able to fork from a preloaded spring process? Or would I need to somehow tell Capybara that its server is not just my rails app to boot, but also that it is spring-ified?
thanks!
The text was updated successfully, but these errors were encountered: