Programmatically running unit tests with nodeunit in node.js

Unit testing and unit testing frameworks are an important part of any significant development project. For our needs, the unit testing framework that turned out to be the best option was nodeunit. However, maybe because we are running on Windows (not linux), it took a little bit to figure out a nice clean way to run the unit tests.

In the end, we wrote our own node.js script to run the unit tests and we thought it might be nice to share that with others to save some time.

First you need to install the package using npm.  As expected, you do this by running:

Read moreProgrammatically running unit tests with nodeunit in node.js

NoSQL databases compared (informally)

When looking at databases, I’m a huge proponent of the fact that no database is “the best”.  When choosing a database to use, it’s all about your application and the database that is the “better” choice for your application today.  I say “today” because as your application evolves and the databases of the world evolve, the database you choose today might not be the optimal choice two years from now.  For this reason, I also believe you should build your application to be relatively easy to decouple from the database and use a different one instead.

Lets talk about my experiences when looking for a NoSQL database…

Read moreNoSQL databases compared (informally)