Screen%20region%202014-09-18%20at%2017.37.07_large

Avishaan Sethi

Use Multiple Values for a Single Jasmine Suite

An alternative to npm libraries like 'jasmine-where' and full blown data provider pattern.

Often, we want to reuse the test suites and encompassing assertions when writing out test cases but want to input different values. Currently, jasmine doesn't provide any kind of pattern for doing so. If you don't want to use another 3rd party library, such as 'jasmine-where', there is a relatively easy way to do so below. In . . .

Read More

October 29, 2014

Check Code Coverage on Your Node.js App

We all talk about it, but no one does it. Part of the reason is because once you get past the basics, there is no good documentation. Here is how to do it with Istanbul and Jasmine-node/Jasmine for the integration and unit tests of your Node.js App

I am going to talk about one very specific item in this article since it barely exists anywhere on the internet. How to run both your integration tests and unit tests in such a way that you can actually see the whole code coverage.
I am not going to tell you to download another plugin, I want you to see how this will actually work.
I . . .

Read More

October 13, 2014

Archive