简体   繁体   中英

Running Jasmine tests automatically and continuously during development

Are there any good strategies for running Jasmine tests automatically and continuously during development? Tests updating on file save should be good enough -- this might make any solution less dependent on specific editors and/or other software required to detect non-saved changes.

In Ruby on Rails this is easy to setup with jasminerice for the Jasmine setup and guard-jasmine to automatically run the complete test suite on every file save. You can even add the growl gem to enable guard to show the results of the automatic test runs with a small desktop notification when finished.

You can find an article which covers the setup of a continuous integration system for automated headless testing of Jasmine (and CasperJS) code in detail here: http://www.jrubyonrails.de/2013/03/continuous-integration-for-jasmine--and-casperjs-tests.html

This article describes the setup of TeamCity CI but should serve as a good starting point to setup other Continuous Integration Systems as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM