Code Coverage with Chutzpah

There was a question in stackoverflow on how to do code coverage in JS with Chutzpah. This is just a short blog on how I did it.

1. First download Chutzpah from codeplex.

Chutzpah

 

2. Now extract it and do the following.

– I extracted chutzpah in the below path.

ChutzpahLocation

– And the location of my js files is here.

UnitTestsLocation

– So, below is how I do code coverage using the chutzpah’s console.

doing_the_console

– And yes of course the result.

resultOfChutzpahCodeCoverage

Nice isn’t it!!!

I will be bloggin everyday from .net,java,python,LAMP,MEAN and all other important topics. This is my way of challenging my self and not become stagnant with just 1 programming/scripting language.

Please also check my site www.francorobles.com if you want to know more about me.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: