Here is something I was thinking about and I am wondering if anyone is doing this or if there are any resources online I can read for more information.
This is a brand new project I am working on. I am current doing unit testing and I have started writing browser UI tests. However there are a lot of problems that come up when you start UI testing (browser versions, javascript errors, ajax calls taking too long to run). I understand UI testing is important but right now I've just written a considerable amount of backend code and I want to test the entire process minus the browser portion.
I was thinking I could write a test that
- Inserts records into the DB
- Calls the controller action with test data just as the browser would
- Runs through the code from start to finish
- Assert that the correct info was written to/updated the DB
- Rollback the database changes
Is this something that is typically done? If so are there any sites that could help me get started on setting up these types of tests?
Thanks!