Jeff Barczewski
2006-Oct-18 14:36 UTC
[Masterview-devel] Integration tests of MasterView running in rails
Eventually I do want to add some integration tests to automatically test out functionality when running in rails both with rails 1.1.6 and with edge rails. So I am envisioning a test that would generate a rails tree, swap out the database.yml, run masterview generators, fire up rails, test pages, and admin pages. It would do this for both latest release of rails and with rails edge. I''m not sure the best way to do all of this but I was thinking that I would simply write a rake task that calls system to execute these commands and then runs some rails integration tests checking the output for 0 failures, 0 errors. This will allow us to programmatically kick off these tests and eliminate the manual verification. We can easily run on both linux and windows environments and any number of other factors (mongrel vs webrick vs lighttpd, different versions of rails, etc). This nothing to hold up the release with, but something I would like to put in place sooner than later to make things easier on us and improve our breadth of testing. If you have any additional ideas on how I should go about doing this let me know. Otherwise I am going to brush up on my ruby system calls and how to get at the output as well as calling rails integration tests. I guess I can use a migration to create a database and maybe a fixture file to load it. Thanks, Jeff