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

github.com/bobbyno/tbox/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. tbox 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 tbox application is distributed as a RubyGem and is available immediately after installation.

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

$ sudo gem install bobbyno-tbox

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 tbox command to generate your test scaffolding.

The default is Ruby:

$ cd ~/ruby_projects

$ tbox learning_ruby

$ rake

tbox also supports Java:

$ cd ~/java_projects

$ tbox -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:

tbox currently creates environments for Ruby and Java, but can easily be extended to any language that lends itself to unit testing. tbox 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