Running jasmine tests using jasmine-node and autotest

I’ve just started using Jasmine-node on a project I’m starting to help people build recursive-descent parsers. Jasmine-node is a neat little tool, because it allows you to write a command line like this;

jasmine-node spec/ --autotest

And it’ll start a process which monitors your tests. As you save your tests (the .spec.js files), the tests are all re-run, and this makes for a really tight development cycle. As you save, without anything other than ctrl+s, your tests run. Beautiful, really — the fact the test is running without any interference means that you don’t even think about a code-run-test cycle — it’s just code-code-code. Neat.

Special thanks to Clare for helping me get the first few Jasmine tests written. That initial understanding is the thing that cracks open a lot of possibility.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s