Re: [JSMentors] TDD with javascript

2011-04-21 Thread Ariya Hidayat
And if you use Jasmine, take a look at the blog post I wrote some time ago: http://www.sencha.com/blog/headless-testing-for-continuous-integration-with-git-and-jasmine/ on how to integrate Jasmine (with a headless specrunner) with Git so that you can avoid potential breakage as early as possib

Re: [JSMentors] TDD with javascript

2011-04-21 Thread Andrés Maneiro
Thanks everyone, seems I have material to read and test to do! :) On 04/21/2011 01:14 PM, Nick Morgan wrote: Another +1 here on Christian's book (http://tddjs.com). On 20 April 2011 23:24, Christian Johansen wrote: Thanks for the kind words everyone. I also use JsTestDriver. I have not tried

Re: [JSMentors] TDD with javascript

2011-04-21 Thread Anders Jönsson
Hi My team use BDD/TDD to drive the design of our system (you can think of the tests as a bi product). We use Jasmine (pivotal.github.com/jasmine/) as our test/specification framework. When it comes to stubbing and mocking ( http://martinfowler.com/articles/mocksArentStubs.html) we sometimes use t

Re: [JSMentors] TDD with javascript

2011-04-21 Thread Nick Morgan
Another +1 here on Christian's book (http://tddjs.com). On 20 April 2011 23:24, Christian Johansen wrote: > Thanks for the kind words everyone. I also use JsTestDriver. I have not > tried the IntelliJ plugin, but can confirm similar experience in Eclipse. I > don't the IDE plugins are quite there

Re: [JSMentors] TDD with javascript

2011-04-20 Thread Christian Johansen
Thanks for the kind words everyone. I also use JsTestDriver. I have not tried the IntelliJ plugin, but can confirm similar experience in Eclipse. I don't the IDE plugins are quite there yet. However, as previously mentioned, I did slap together a tool for autotesting from the command line which I u

Re: [JSMentors] TDD with javascript

2011-04-20 Thread Tom de Koning
I have tried JSTestrunner as well, but found it sluggish in running my tests (using IntelliJ on windows). I've switched to XRefresh which refreshes the browser targeting your unit tests; really, really fast. Tom On Wed, Apr 20, 2011 at 10:32 PM, Gregers Gram Rygg wrote: > Christian Johansen has

Re: [JSMentors] TDD with javascript

2011-04-20 Thread Gregers Gram Rygg
Christian Johansen has also written a really nice mock and spy library that works with any test library, SinonJs. It also lets you write expectations, which makes the test more easy to read imho. Sandboxing with Sinon automatically checks that expectations are met and restores functions you've mock

Re: [JSMentors] TDD with javascript

2011-04-20 Thread Bill Heaton
Andrés, Pavlov and QUnit look very promising... From the JQuery conference I found ... PROTOTYPING AND UNIT TESTING, Using Mockjax, mockJSON, & Amplify http://dl.dropbox.com/u/200135/talks/prototyping-unit-testing/builder/index.html#slide=1 and Natural Language UI Testing using Behavior Drive

[JSMentors] TDD with javascript

2011-04-20 Thread Andrés Maneiro
Has someone experiences doing TDD with javascript? I'm interested in hearing from real experiences. Also references to good videos or lectures will be valuable. best, amaneiro -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmento