News for hackers. Stuff that matters.
Re:Unit Testing 101: Are You Testing Your JavaScript? by bwindels on Wednesday February 23, 2011 @11:25AM (#2254610)
A blog post on MSDN promoting the use of google and java software (JsTestDriver) and not even mentioning visual studio, times have changed indeed.
Re:Unit Testing 101: Are You Testing Your JavaScript? by ch0wn on Wednesday February 23, 2011 @11:50AM (#2254747)
I might be wrong, but those scrollbars in the screenshot look a lot like Ubuntu's.
Re:Unit Testing 101: Are You Testing Your JavaScript? by akavlie on Wednesday February 23, 2011 @01:06PM (#2255063)
Yep, you're right! The author works for Gitorious too.

Despite the fact that this is a Microsoft blog, the content is about the furthest you can get from MS-centric development. Everything he endorses is open source, from sources other than Microsoft. It's kind of amazing.

Re:Unit Testing 101: Are You Testing Your JavaScript? by cjohansen on Wednesday February 23, 2011 @04:38PM (#2255925)
Actually it's Linux Mint 10, but same Gnome setup :) (Also, Mint is just a slightly different wrapper on top of Ubuntu).
Re:Unit Testing 101: Are You Testing Your JavaScript? by DanielRibeiro on Wednesday February 23, 2011 @11:44AM (#2254720)
Jasmine is also a great framework for testing. It work headless (nodejs) and on web (for those rare times you want to debug a test): http://pivotal.github.com/jasmine/
Re:Unit Testing 101: Are You Testing Your JavaScript? by trungonnews on Wednesday February 23, 2011 @12:48PM (#2254994)
agree
Re:Unit Testing 101: Are You Testing Your JavaScript? by MartinCron on Wednesday February 23, 2011 @01:02PM (#2255048)
It always annoys me when people talk about test automation (TDD, unit testing, whatever) in the context of "finding bugs".

Test automation is about preventing bugs.

Re:Unit Testing 101: Are You Testing Your JavaScript? by cjohansen on Wednesday February 23, 2011 @04:37PM (#2255920)
Test automation is about preventing bugs, sure. And TDD is about software design. I don't disagree.

However, unit testing is also a nice way to find bugs. In any case, "trapping" a bug like I did in this article is often an effective way of introducing newcomers to what a unit test is.

Re:Unit Testing 101: Are You Testing Your JavaScript? by MartinCron on Thursday February 24, 2011 @07:39PM (#2260511)
It was a good article. And using automated tests to trap and isolate problems is an important technique.

I didn't mean my nit-picking to come across as harsh and dismissive. I just get hung up on people talking about writing tests to find bugs, because if that's all it is about, manual testing is generally faster in the short-run.

Re:Unit Testing 101: Are You Testing Your JavaScript? by fish2000 on Wednesday February 23, 2011 @12:00PM (#2254788)
Relatedly: what is with MSDN bloggers always referring to themselves as 'junkies'? A "script junkie" probably won't steal their mother's VCR and pawn it so they can get more scripts to stick in their arm. It's kind of a bizarre convention.
Re:Unit Testing 101: Are You Testing Your JavaScript? by nestlequ1k on Wednesday February 23, 2011 @12:34PM (#2254936)
Junkie has several different meanings: http://en.wikipedia.org/wiki/Junkie
Re:Unit Testing 101: Are You Testing Your JavaScript? by rst on Wednesday February 23, 2011 @12:27PM (#2254907)
Another option is the test framework used for jQuery itself, QUnit: http://docs.jquery.com/Qunit
Re:Unit Testing 101: Are You Testing Your JavaScript? by augustl on Wednesday February 23, 2011 @12:58PM (#2255038)
I prefer JsTestDriver to any other JS test framework out there, for two reasons: 1. You get feedback in your terminal 2. It scales better - run in multiple browsers with one command, output results in junit XML for CI tools, etc.
Re:Unit Testing 101: Are You Testing Your JavaScript? by trungonnews on Wednesday February 23, 2011 @02:11PM (#2255313)
i believe you can make jsTestDriver to work with any other test framework such as jamine js.
Re:Unit Testing 101: Are You Testing Your JavaScript? by mckoss on Wednesday February 23, 2011 @12:48PM (#2254988)
Very nice summary of testing best practices - and surprisingly not Microsoft specific!
Re:Unit Testing 101: Are You Testing Your JavaScript? by trungonnews on Wednesday February 23, 2011 @12:52PM (#2255007)
if anyone didn't notice. that article is hosted by Microsoft.

since when did they develop on firebug, use open source tools, and hudson ci? and practice TDD?

Re:Unit Testing 101: Are You Testing Your JavaScript? by augustl on Wednesday February 23, 2011 @12:55PM (#2255021)
The author of that post is a guest author. I think most of the authors on that blog are.