Instead of reinventing the wheel with my custom V8 shell I decided to use nodejs. nodejs has an excellent module system which makes it easy to add new functionality.
I now need to be able to create unit tests for command line tools and server scripts and unfortunately the regular QUnit framework cannot be used directly since it uses the DOM to report feedback. Fortunately the node-qunit module can be added to nodejs which adds support for QUnit style unit testing.
Whilst there are notable differences between the way in which these two QUnit variants
behave, it is possible to write unit tests that are compatible with both versions. For
QUnit.module should be used instead of
something different in nodejs.