Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posted
9 August 2006 @ 2pm

Tagged
Rails, Ruby, TDD

Discuss

Using Autotest with Integration Tests

Autotest by default doesn't try to do anything with integration tests...since they can test so many files, its impossible to map x controller and z model to a integration test. However, that shouldn't prevent it from at least rerunning an integration test when there are changes to the integration test itself, and also running the integration test when it does the whole suite run. So in rails_autotest.rb you can add another case to the tests_for_file method:

RUBY:
  1. when %r%^test/integration/.*\.rb$% then
  2.       [filename]

Which just means "include integration tests in the suite, and rerun the integration test when it changes."


2 Comments

Posted by
zenspider
10 August 2006 @ 3am

ya know… there is this thing called a “bug report”…


Posted by
Rob
10 August 2006 @ 7am

I actually thought you had left it out deliberately.


Leave a Comment

Hacking green bar color output into Autotest The Difference Between the Ruby and Java Communities