ruby on rails - Running test suites multiple times, automatically -


i'm using minitest , running tests against rails backend gaming application. because "game world" has synthesized elements generated according various random distributions, want run test suite repeatedly reveal defects might arise consequence of unlikely, possible combinations of synthesized random attributes. (like have run repeatedly several hours.)

ideally, id test suite keep running until stop it, or until halts due discovered error scenario, @ point know unlikely set of events caused fail.

i'm not sure how go this. there doesn't seem rake test option "run multiple times" or "run till fail".

create file called "run_tests_forever.rb with:

while true   puts "running tests again..."   `rake test` end 

(note: backticks make system call)

then run with:

ruby run_tests_forever.rb 

:)

(or equivalent requirements...)


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -