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

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -