How does this differ from Respawn? #30
-
How does this differ from Respawn? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@lonix1 It's a good observation that libraries do have a lot of similarities: both claim to help you to manage your test database by keeping it in a well-known and determined state. But while Respawn cares about data cleanup only, Reseed is focused on data restore as a whole, i.e not only is it able to delete the data, but also to insert it back. Data needs to be specified in one or multiple data files (xml format only for now, see Data Providers documentation section for additional details) and is to be used by Reseed to generate sql insert scripts based on it. Examples section should give you a better understanding of the idea. Having said that, Reseed could also be used for the cleanup logic execution only, thus merely behave same way as Respawn. SeedMode.CleanupOnly(CleanupDefinition.Script(
CleanupMode.PreferTruncate(),
CleanupTarget.Including(f => f.IncludeSchemas("dbo")))); I'd say that difference for cleanup-only case is that scripts generation behavior is slightly more configurable for Reseed, e.g you could use Hope it helps and let me know if any additional clarification is needed. |
Beta Was this translation helpful? Give feedback.
@lonix1 It's a good observation that libraries do have a lot of similarities: both claim to help you to manage your test database by keeping it in a well-known and determined state. But while Respawn cares about data cleanup only, Reseed is focused on data restore as a whole, i.e not only is it able to delete the data, but also to insert it back.
Data needs to be specified in one or multiple data files (xml format only for now, see Data Providers documentation section for additional details) and is to be used by Reseed to generate sql insert scripts based on it.
Examples section should give you a better understanding of the idea.
Having said that, Reseed could also be used for the cleanup…