Tag Archives: Jasmine

Jasmine-Matchers: Additional matchers for the Jasmine BDD JavaScript testing library


via JamieMason/Jasmine-Matchers · GitHub.

Jasmine-Matchers

Jasmine Unit Tests and Maven


Unit tests are a fundamental way of maintaining stability in your code base. As a Java developer, JUnit is the tool for the job. With a suite of unit tests, they can be integrated into your build tool, and Continuous Integration jobs. But how about JavaScript? I have used Jasmine (http://jasmine.github.io/) before for unit tests. […]

https://jwhiteleydsb.wordpress.com/2015/07/30/jasmine-unit-tests-and-maven/

Comprehensive Guide To Unit Testing In AngularJS


via Comprehensive guide to Unit Testing in AngularJS.

Angular allows you to build amazing user interfaces, but as complexity increases, unit testing becomes a very important part of your project. In this article I will provide a comprehensive guide for how to successfully write unit tests in AngularJS. The examples are created using Jasmine, but the concepts are not directly tied to a specific testing framework.

Unit testing Meteor applications with Velocity, Jasmine and SinonJS


via Unit testing Meteor applications with Velocity.

In my previous tutorial I explained some of the basic features of Meteor, a full stack JavaScript platform. In this tutorial I will go more in depth about testing a Meteor application, by testing the chat application we wrote in the previous tutorial.
In this first part I’ll show you how to unit test your Meteor application using the Velocity platform.

Unit testing Meteor applications with Velocity, Jasmine and SinonJS


via Unit testing Meteor applications with Velocity.

In my previous tutorial I explained some of the basic features of Meteor, a full stack JavaScript platform. In this tutorial I will go more in depth about testing a Meteor application, by testing the Chat application we wrote in the previous tutorial.
In this first part I’ll show you how to unit test your Meteor application using the Velocity platform.

ES6 Code Coverage with Babel, JSPM, Karma, Jasmine and Istanbul


via ES6 Code Coverage with Babel, JSPM, Karma, Jasmine and Istanbul — Medium.

When living on the edge, getting the tooling of the past to work as expected requires a bit of extra work. I’ll walk you through the steps you need to get set up with a modern JavaScript toolchain with proper code coverage.

If you’re impatient, and just want to see the code, head over tohttps://github.com/gunnarlium/babel-jspm-karma-jasmine-istanbul.

Disclaimer: All the tools used in this post are in rapid development. It was working at the time of writing, but this can be invalidated at any time. Please let me know you if you find any issues are or if you’re from the future, and can tell me that some of the more hacky bits are no longer needed.

Testing with ReactJS


via Testing with ReactJS at Codecademy — About Codecademy — Medium.

At Codecademy, we use ReactJS to build our learning environment. We’ve really enjoyed working with React; it’s well-suited to our learning environment, which is for the most part a single-page app.

Of course, as part of our React setup, we wanted the ability to write tests for our React components! A few months ago, I started exploring our options. Spoiler alert: we settled on Karma and Jasmine, because it was over 100x faster than Jest.