We have various systems where the majority of our business logic is within stored procedures. We need to write some tests that basically check data has changed in the expected way when a stored proc has been run. I'd also like some basic schema tests, input and output params etc as well.
I've been looking at DBfit and MSTest database tests and currently, i'm not sold on either. I've used Nunit to test c# code and was wondering if using Nunit would be a good alternative approach to testing stored procs from within .net (maybe using EF4)
Something like
- Setup data
- Check data
- Execute proc
- Check data has changed
Would this be a suitable method of testing stored procs? Are there other, better methods?
Opinions and feedback would be appreciated :-)
EDIT: i'd also like to integrate this into our CI process using TeamCity