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
# initializers/cypress_rails.rbreturnunlessRails.env.test?CypressRails.hooks.before_server_startdo# Called once, before either the transaction or the server is startedRails.application.load_tasksRake::Task["db:cypress:seed"].invokeendCypressRails.hooks.after_transaction_startdo# Called after the transaction is started (at launch and after each reset)endCypressRails.hooks.after_state_resetdo# Triggered after `/cypress_rails_reset_state` is calledendCypressRails.hooks.before_server_stopdop"before_server_stop................"Rails.application.load_tasksRake::Task["db:truncate_all"].invokeend
But the before_server_stop hook is not triggered in case there's any test case failed, it looks like there's something wrong with the rollback_transaction, i've not figured out yet. Even i not call the seed rake task on the before_server_start hook , the rollback_transaction is still stucked.
With CYPRESS_RAILS_TRANSACTIONAL_SERVER=false, the before_server_stop hook is triggered.
So i am not sure whether it's a bug or with the config CYPRESS_RAILS_TRANSACTIONAL_SERVER=true we assume that we will not use the before_server_stop hook ? if so, we need to update README.
Thanks!
The text was updated successfully, but these errors were encountered:
Rails 7.1.3.2
Ruby 3.2.2
I setup config as below:
But the
before_server_stop
hook is not triggered in casethere's any test case failed
, it looks like there's something wrong with the rollback_transaction, i've not figured out yet. Even i not call the seed rake task on thebefore_server_start
hook ,the rollback_transaction
is still stucked.With
CYPRESS_RAILS_TRANSACTIONAL_SERVER=false
, thebefore_server_stop
hook is triggered.So i am not sure whether it's a bug or with the config
CYPRESS_RAILS_TRANSACTIONAL_SERVER=true
we assume that we will not use thebefore_server_stop
hook ? if so, we need to update README.Thanks!
The text was updated successfully, but these errors were encountered: