Testing in Rails

19 Mag 2008
Categoria: Ruby on Rails

Ho scoperto da pochissimo la gemma autotest che fa esattamente quello che il nome suggerisce…lancia continuamente i test contenuti nella directory /test del vostro progetto.

Ogni volta che salvate e/o modificate un test functional, integration, o unit, autotest rilancia per voi il relativo task

rake test

Geniale no?

Per installare la gemma basta un

sudo gem install ZenTest

Dalla directory del vostro progetto vi basterà lanciare il comando

autotest

e il gioco è fatto. Per terminare autotest vi basta digitare due volte di seguito “ctrl + c

Ciao

Tag: , , , ,

Lascia un Commento

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word