Closed
Description
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:
One particular thing i was thinking about is ability to partly reseting DB. For some cases it would speed up testing, b/c reseting and re-seeding sometimes look pretty heavy.
@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
cy.appCleanerStrategy('truncation', { only: ["widgets", "dogs", "some_other_table"] })
cy.appCleanerClean()