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 <[email protected]>wrote: > 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 mocked in your tests. > > http://sinonjs.org/ > > For me it really helped to watch Christian demonstrate Sinon live, but > I'm not sure if anyone has recorded his presentation on Sinon. > Front-Trends recorded his presentation of live coding tdd js, but > wasn't able to find it online. > > I can also recommend his book, and JsTestDriver is the best testrunner > I've found so far. A lot of them are described here: > > http://stackoverflow.com/questions/300855/looking-for-a-better-javascript-unit-test-tool > > Happy testing :) > > Gregers > > On Wednesday, April 20, 2011, Maximilian Antoni > <[email protected]> wrote: > > I'm using JsTestDriver: > > http://code.google.com/p/js-test-driver/ > > > > This also gets used in the recommendable book "Test-Driven JavaScript > > Development": > > http://tddjs.com/ > > > > The author also came up with a neat wrapper for JsTestDriver that runs > > all tests when saving a file and adds color: > > > http://cjohansen.no/en/javascript/jstdutil_a_ruby_wrapper_over_jstestdriver > > > > Very nice setup, fast turn around, no manual steps. > > -Max > > > > > > On 20 Apr., 20:29, Bill Heaton <[email protected]> wrote: > >> Andrés, > >> > >> Pavlov and QUnit look very promising... From the JQuery conference I > found ... > >> > >> PROTOTYPING AND UNIT TESTING, Using Mockjax, mockJSON, & > Amplifyhttp:// > dl.dropbox.com/u/200135/talks/prototyping-unit-testing/builder... > >> > >> and > >> > >> Natural Language UI Testing using Behavior Driven Development with > Pavlov and QUnithttp:// > www.slideshare.net/ericdelabar/natural-language-ui-testing-usi... > >> > >> Regards, > >> > >> --Bill Heaton > >> > >> On Apr 20, 2011, at 8:34 AM, Andrés Maneiro wrote: > >> > >> > >> > >> > 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/[email protected]/ > >> > >> > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > >> > >> > To unsubscribe from this group, send email to > >> > [email protected] > > > > -- > > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > > > To unsubscribe from this group, send email to > > [email protected] > > > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
