Hi! So, what are the cool kids using for unit testing Javascript these days? I'm mainly interested in browser based apps at this stage. I mean, really a unit testing framework doesn't need to do much except provide assertions and a way to run and report on tests, but I'm sure people have a favourite. I've used QUnit in the past, which did the trick and I'm happy to use again, but it's always nice to find out about new things. I've also looked at Sinon.js, which I'm aware isn't a testing framework but a complimentary set of tools for a testing framework. - Marcin
There's a lot of jonesing for Jasmine these days - http://pivotal.github.com/jasmine/ I'm personally not sold on BDD in JavaScript but that's a different story. Ultimately QUnit is what I use most of the time, it does what I need/ what. I quite like how it handles the DOM between tests too. Aaron Powell MVP - Internet Explorer (Development) | FunnelWeb Team Member http://apowell.me | http://twitter.com/slace | Skype: aaron.l.powell | Github | BitBucket -----Original Message----- From: sydjs@librelist.com [mailto:sydjs@librelist.com] On Behalf Of Marcin Szczepanski Sent: Thursday, 24 November 2011 8:54 AM To: sydjs@librelist.com Subject: [sydjs] Unit testing JS Hi! So, what are the cool kids using for unit testing Javascript these days? I'm mainly interested in browser based apps at this stage. I mean, really a unit testing framework doesn't need to do much except provide assertions and a way to run and report on tests, but I'm sure people have a favourite. I've used QUnit in the past, which did the trick and I'm happy to use again, but it's always nice to find out about new things. I've also looked at Sinon.js, which I'm aware isn't a testing framework but a complimentary set of tools for a testing framework. - Marcin
Hey, We got stuck into testing an XDM JS app in the last week using Jasmine and a jQuery plugin (https://github.com/velesin/jasmine-jquery). Very happy with it so far. Regards, Denis Hoctor +61 415 558 261 On 24 November 2011 08:59, Aaron Powell <me@aaron-powell.com> wrote: > There's a lot of jonesing for Jasmine these days - > http://pivotal.github.com/jasmine/ > I'm personally not sold on BDD in JavaScript but that's a different story. > > Ultimately QUnit is what I use most of the time, it does what I need/ > what. I quite like how it handles the DOM between tests too. > > Aaron Powell > MVP - Internet Explorer (Development) | FunnelWeb Team Member > > http://apowell.me | http://twitter.com/slace | Skype: aaron.l.powell | > Github | BitBucket > > -----Original Message----- > From: sydjs@librelist.com [mailto:sydjs@librelist.com] On Behalf Of > Marcin Szczepanski > Sent: Thursday, 24 November 2011 8:54 AM > To: sydjs@librelist.com > Subject: [sydjs] Unit testing JS > > Hi! > > So, what are the cool kids using for unit testing Javascript these days? > I'm mainly interested in browser based apps at this stage. I mean, really > a unit testing framework doesn't need to do much except provide assertions > and a way to run and report on tests, but I'm sure people have a favourite. > > I've used QUnit in the past, which did the trick and I'm happy to use > again, but it's always nice to find out about new things. > > I've also looked at Sinon.js, which I'm aware isn't a testing framework > but a complimentary set of tools for a testing framework. > > - Marcin >
It's not released yet, but I am keeping my eye on busterjs.org from the makers of sinon. Jonathon On Thu, Nov 24, 2011 at 9:47 AM, Denis Hoctor <denishoctor@gmail.com> wrote: > Hey, > > We got stuck into testing an XDM JS app in the last week using Jasmine and > a jQuery plugin (https://github.com/velesin/jasmine-jquery). Very happy > with it so far. > > > Regards, > Denis Hoctor > > +61 415 558 261 > > > > On 24 November 2011 08:59, Aaron Powell <me@aaron-powell.com> wrote: > >> There's a lot of jonesing for Jasmine these days - >> http://pivotal.github.com/jasmine/ >> I'm personally not sold on BDD in JavaScript but that's a different story. >> >> Ultimately QUnit is what I use most of the time, it does what I need/ >> what. I quite like how it handles the DOM between tests too. >> >> Aaron Powell >> MVP - Internet Explorer (Development) | FunnelWeb Team Member >> >> http://apowell.me | http://twitter.com/slace | Skype: aaron.l.powell | >> Github | BitBucket >> >> -----Original Message----- >> From: sydjs@librelist.com [mailto:sydjs@librelist.com] On Behalf Of >> Marcin Szczepanski >> Sent: Thursday, 24 November 2011 8:54 AM >> To: sydjs@librelist.com >> Subject: [sydjs] Unit testing JS >> >> Hi! >> >> So, what are the cool kids using for unit testing Javascript these days? >> I'm mainly interested in browser based apps at this stage. I mean, really >> a unit testing framework doesn't need to do much except provide assertions >> and a way to run and report on tests, but I'm sure people have a favourite. >> >> I've used QUnit in the past, which did the trick and I'm happy to use >> again, but it's always nice to find out about new things. >> >> I've also looked at Sinon.js, which I'm aware isn't a testing framework >> but a complimentary set of tools for a testing framework. >> >> - Marcin >> > >