简体   繁体   English

在开发过程中自动连续地运行Jasmine测试

[英]Running Jasmine tests automatically and continuously during development

Are there any good strategies for running Jasmine tests automatically and continuously during development? 在开发过程中是否有任何好的策略可以自动且连续地运行Jasmine测试? 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. 在Ruby on Rails中,使用jasminerice进行Jasmine设置很容易进行设置,而guard-jasmine可以在每个文件保存时自动运行完整的测试套件。 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 您可以在此处找到一篇文章,其中涵盖了用于自动无头测试Jasmine(和CasperJS)代码的连续集成系统的设置: 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. 本文介绍了TeamCity CI的设置,但也应作为设置其他持续集成系统的良好起点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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