Skip to content

Consider solutions to reseting the database back to some prior state #26

Closed
@justin808

Description

@justin808

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()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions