Monday, January 25, 2016

Integrate Jasmine into Rails for Solid Javascript Testing

jasmine_vertical

Jasmine is a framework to create tests for javascript code in the behavior-driven development style. In this article, you will learn how to integrate Jasmine into a Ruby on Rails application.

Jasmine has a clean syntax with the aim to provide descriptive behavior about the code being tested. People that use RSpec or Minitest::Spec will be familiar with Jasmine. Even if you haven't used either of those frameworkes, you'll have no difficulties in creating tests for Jasmine.

After reading this article, you'll be able to integrate Jasmine into your Rails application, create tests for your javascript files, test your Rails UJS functionality inside your app, and be able to run Jasmine as a part of your existing (right??) Continuous Integration existing build system.

Continue reading %Integrate Jasmine into Rails for Solid Javascript Testing%


by Hendra Uzia via SitePoint

No comments:

Post a Comment