Easy JavaScript testing
Last updated 2 years ago by sposmen .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @summon/windtunnel 
SYNC missed versions from official npm registry.

Wind Tunnel

What's this?

A headless JavaScript testing (using Jasmine, https://github.com/pivotal/jasmine) tool that doesn't require a browser, but does simulate the DOM using jsdom (https://github.com/tmpvar/jsdom).

It's the successor to the (now defunct) webr experiment (https://github.com/thatdutchguy/webr).


This is a work in progress, and is still in its early stages. I hammered this out while attending LSRC V. I'm still figuring out this node.js thing and am not sure how I'm going to structure this yet. Stuff will change. Stuff will break.


npm install -g windtunnel


wt <path> [options]


wt jspec/

wt jspec/ --summarizer html

wt jspec/awesome_spec.js --summarizer html

The HMTL summarizer has been tailored to work well with TextMate.

Useful tidbits

  • Output format can be text or html (a la RSpec).
  • Each spec file will run in it's own context, so things won't bleed through into specs run from other files.
  • A "script" method is exposed for loading other scripts in your spec. Scripts paths should be relative to the file loading them.
  • The "require" method is exposed to the context specs run in, allowing you to do more advanced things like load files from disk (for example: template files).
  • Works with CoffeeScript: You can write your specs in CoffeeScript and load JavaScript/CoffeeScript.

Current Tags

  • 0.1.1                                ...           latest (2 years ago)

1 Versions

  • 0.1.1                                ...           2 years ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |