Testing your npm package against multiple versions of Node.js

28 views
Skip to first unread message

Dashku

unread,
Jul 30, 2012, 4:22:04 PM7/30/12
to nod...@googlegroups.com
Hi,

I've been writing an npm module where a dependency was only supported on Node 0.6, and the tests were using an API call exclusive to 0.8. I've upgraded the dependency so that 0.8 is supported.

The observation I made was that testing your npm module against multiple versions of Node is a manual process (via nvm), and can be slow.

I had an idea; build a tool that runs the testing and installation of your npm packages against different versions of Node automatically. It pinpoints what versions of Node your npm will work on, and saves you going through the manual process I went through.

Is there a better way for doing this kind of thing? Thoughts?

Oleg Efimov (Sannis)

unread,
Jul 30, 2012, 5:13:24 PM7/30/12
to nod...@googlegroups.com
Try http://travis-ci.org/ :)

вторник, 31 июля 2012 г., 0:22:04 UTC+4 пользователь Dashku написал:

Evan

unread,
Jul 31, 2012, 1:35:42 AM7/31/12
to nod...@googlegroups.com
I'm testing actionHero [[ http://actionherojs.com ]] against a few versions of node on travis.ci  [[ http://travis-ci.org/#!/evantahler/actionHero ]].  It's free, fast and great!
Reply all
Reply to author
Forward
0 new messages