Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
What's the best code coverage tool to use with jasmine?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nicola Peluchetti  
View profile  
 More options Jun 8 2012, 11:20 am
From: Nicola Peluchetti <nicola.peluche...@gmail.com>
Date: Fri, 8 Jun 2012 08:20:41 -0700 (PDT)
Local: Fri, Jun 8 2012 11:20 am
Subject: What's the best code coverage tool to use with jasmine?

I've tried using jasmine with jsTestDriver but i couldn't get things
working, this is probably due to the fact that i'm using jasmine-jquery. I
also need a browser environment as i'm using html fixtures and i'm not sure
that works in jsTestDriver.

What other tool could i use to see the code coverage of my tests?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bernardo  
View profile  
 More options Jun 15 2012, 11:26 pm
From: bernardo <bfa...@gmail.com>
Date: Fri, 15 Jun 2012 20:26:38 -0700 (PDT)
Local: Fri, Jun 15 2012 11:26 pm
Subject: Re: What's the best code coverage tool to use with jasmine?

Ciao Nicola,

Sei italiano immagino?

Found your post looking for ways to get js coverage through jasmine myself.
To answer your questions:
1) Jasmine by itself, even with Jasmine-jquery, works great with JTSD, I've
experimented myself and it definitely works.
2) If you need a browser environment to load html fixtures (you technically
don't, you can use things like env.js) JTSD is even more so the right
choice, as it actually does run tests in 'registered' browsers so you get a
full browser environment.

I wasn't able to get JTSD to work for my specific application because I
also use requireJS for AMD loading and it seems to be highly incompatible
with JTSD.
So the question remains - what other tool could I/we use to collect code
coverage in a jasmine environment?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Marr  
View profile  
 More options Jun 20 2012, 1:03 am
From: David Marr <dave.m...@gmail.com>
Date: Tue, 19 Jun 2012 22:03:08 -0700
Local: Wed, Jun 20 2012 1:03 am
Subject: Re: [jasmine-js] Re: What's the best code coverage tool to use with jasmine?
Grunt has a task to watch current folder. I just stumbled across these
commands by luck but they seem to create a nice simple flow to get
started testing and writing code.

cd ~/Grunts
git init
grunt init:commonjs
(enter .git for git repo path)

Now you have a grunt managed project!

I then ran:

grunt watch

and opened a new terminal pane using iTerm2 in the same window ⌘D

then, opened vim and changed lib/Grunts.js to return axxxsome instead
of 'awesome'. Voila the other pane that is `watching` spits out a nice
list of trace statements. It runs /nodeunit/ tests but still, if i'm
starting out, I think this is easier than getting a similar workflow
working without ruby.

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicola Peluchetti  
View profile  
 More options Jun 20 2012, 7:23 am
From: Nicola Peluchetti <nicola.peluche...@gmail.com>
Date: Wed, 20 Jun 2012 04:23:36 -0700 (PDT)
Local: Wed, Jun 20 2012 7:23 am
Subject: Re: What's the best code coverage tool to use with jasmine?

Yes i'm Italian!I'm using requirejs too, and i found out id that it is
nearly impossible to use with jsTestDriver, i simply can't get my tests to
run. It seems like they aren't recognized.

Did you find out something that works?

--
Nicola Peluchetti
Twitter: @nik_peluchetti <https://twitter.com/#!/nik_peluchetti>
Facebook: nicola.peluchetti <https://www.facebook.com/nicola.peluchetti>
Mobile: +39 339 7507235


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bret Little  
View profile  
 More options Oct 19 2012, 1:56 pm
From: Bret Little <bret.lit...@gmail.com>
Date: Fri, 19 Oct 2012 10:56:36 -0700 (PDT)
Local: Fri, Oct 19 2012 1:56 pm
Subject: Re: What's the best code coverage tool to use with jasmine?

I did get requirejs and jasmine working with jstestdriver:
https://github.com/blittle/jstesting

I am having other stability issues with jstestdriver:
https://code.google.com/p/js-test-driver/issues/detail?id=282&q=preload


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »