Skip to content
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

Need to restore a database to test against on each run #1

Open
PeteDuncanson opened this issue Jun 26, 2018 · 0 comments
Open

Need to restore a database to test against on each run #1

PeteDuncanson opened this issue Jun 26, 2018 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@PeteDuncanson
Copy link
Owner

To ensure we have a "clean" database each time we should really restore one a fresh at the start of each run.

Current thinking is to have a SQL CE database on disc as a "snapshot" that we can copy over to the /App_Data/ folder to replace the one we used for the last run. We could then mess around with the database via the Umbraco back office to add any content we want etc. take a copy of it for the "snap shot".

Need a script that will copy the snap shot db over the existing db before anything runs. Suspect this might need to be a JS task and I'm leaning towards adding this as a "npm script test" script for ease. Having a "npm script take-snap-shot" might be an idea too.

One issue we will have is SQL CE is meant to be getting ripped out of V8...

@PeteDuncanson PeteDuncanson added the help wanted Extra attention is needed label Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant