-
-
Notifications
You must be signed in to change notification settings - Fork 60
Consider solutions to reseting the database back to some prior state #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@justin808 @grantspeelman I played a little bit with one client project with Cypress on Rails setup.
|
@MUTOgen did you find a solution to be able to use transaction strategy with this gem? |
@gsouf Not really. |
@MUTOgen transaction is much faster for my use case. With rails test I use it to make everything faster. It seems like that somehow this other gem has a way to do it using a "transactional server", not sure if it works well I have never tested this gem |
hmmm, that is very interesting. I wonder how they manage to get a shared transaction scope across multiple connections. |
Very slow reply but here's how they do it: https://github.com/testdouble/cypress-rails/blob/67edef5c64fa50bec596262c6965b68e901133c7/lib/cypress-rails/manages_transactions.rb |
Would it be useful if we could seed a database once and then reset it between tests using something like https://github.com/fastmonkeys/stellar?
or is https://github.com/DatabaseCleaner/database_cleaner sufficient for just about any use case?
@MUTOgen wrote:
@grantspeelman wrote:
Can you elaborate more on the partly reseting of the DB? is this not something that database_cleaner already provides, ie so won't updating the clean.rb be enough?
Or are you thinking tighter integration with database_cleaner so you can specify it's options from within cypress.
For example
The text was updated successfully, but these errors were encountered: