shubox - A framework to create sandboxes for test-driven learning

github.com/bobbyno/shubox/tree/master

More on Test-Driven Learning: www.bobbynorton.com/?p=36

DESCRIPTION:

Test-driven learning is a way to master a programming language by writing unit tests around its API’s. shubox lowers the barrier to entry for test-driven learning by providing a basic infrastructure in which to start coding: A directory structure, some classes and unit tests to get started, and a build script.

INSTALL:

The shubox application is distributed as a RubyGem and is available immediately after installation.

$ gem sources -a http:http://gems.github.com

$ sudo gem install bobbyno-shubox

Alternately, download the gem and install manually from github.

BASIC USAGE:

Go to the folder where you want to create your new test sandbox, and run the shubox command to generate your test scaffolding.

The default is Ruby:

$ cd ~/ruby_projects

$ shubox learning_ruby

$ rake

shubox also supports Java:

$ cd ~/java_projects

$ shubox -j LearnJava

$ ant -f build/build.xml

The Java command will also generate a <project name>.ipr file to allow the project to easily be opened in IntelliJ 8.

SYNOPSIS:

shubox currently creates environments for Ruby and Java, but can easily be extended to any language that lends itself to unit testing. shubox is built on newgem, so extending the framework is as simple as creating new generator scripts.

REQUIREMENTS:

  • newgem

CREDITS:

Bobby Norton, DRW Trading Group

Dr. Nic Williams for newgem and rubigen: RubyConf 2007 Presentation