Hmmm... in a book, I want to see:

- Lightweight, something I could write and understand, for test.
- Then, the "standard"

That is, in other context (web applications), I want to see:
- Lightweight example, using require('http')
- After exploring the example and its limitations, go for connect or/then
express example

So, in the case of tests, I would like to see something like:

https://github.com/laverdet/node-fibers/blob/master/test.js

before using an "standard" library (usually, a test library is used for
more complex cases, like async ones, better reports, etc...)

I used test.js a lot for tests that use only require('assert') (with minor
modification, testing the output as empty is then OK, skipping
subdirectories, see:
https://github.com/ajlopez/SimpleTpl/blob/master/test.js
)

Angel "Java" Lopez
http://ajlopez.wordpress.com
http://twitter.com/ajlopez

On Mon, Jul 16, 2012 at 1:56 PM, Alex Young <[email protected]> wrote:

> Hello,
>
> I write about Node a lot, and I often illustrate concepts using tests.
>  However, there isn't a standard test runner for Node.
>
> So, let's say I'm writing a book about Node.  I'd like to include examples
> using a test runner that's idiomatic, lightweight, and likely to be around
> in a year or two.  I'm thinking Mocha or Nodeunit might be a good idea.
>
> My projects from 2010-2011 seemed to use Nodeunit, and I've switched a few
> to Mocha with very little trouble.  Their APIs aren't directly compatible
> but the same concepts can be readily gleaned in both.
>
> Does anyone have any strong opinions about this? What test runner would
> you expect (or want) to see in books about Node?
>
> Thanks,
>
> Alex
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to