Run the Jasmine test automatically and continuously during development

Are there any good strategies to run Jasmine tests automatically and continuously during development? Updating the tests while saving the file should be good enough - this can make any solution less dependent on specific editors and / or other software needed to detect unsaved changes.

+4
source share
2 answers

In Ruby on Rails, this is easy to configure using jasminerice to configure Jasmine and guard-jasmine to automatically run a full suite of tests for each save file. You can even add growl gem to enable guard to show the results of automatic test runs with a notification of a small desktop upon completion.

0
source

Here you can find an article detailing the installation of a continuous integration system for automatic testing of Jasmine (and CasperJS) headless tests: http://www.jrubyonrails.de/2013/03/continuous-integration-for-jasmine--and- casperjs-tests.html

This article describes how to configure TeamCity CI, but it should serve as a good starting point for installing other continuous integration systems.

-1
source

Source: https://habr.com/ru/post/1413353/


All Articles