Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nodejs, run test automatically when files change

Is there a way to automatically run tests, when a file in the app is changed? In rails there is a gem called guard. How can one achieve the same in nodejs?

like image 760
Amit Avatar asked Jul 24 '11 14:07

Amit


2 Answers

Not sure if this would work for tests, but Nodemon (https://github.com/remy/nodemon) looks like what you want.

like image 171
Ryan Doherty Avatar answered Sep 28 '22 08:09

Ryan Doherty


Install Jasmine and run

    jasmine-node <dir> --autotest
like image 42
Dan Avatar answered Sep 28 '22 08:09

Dan