Emacs lib to quickly create a small TDD craddle in various languages.
Call the dojo-new-project command. It will ask you for a project name in the minibuffer, then a language (with auto completion).
That's it, it will create a TDD craddle for you, in a directory named ProjectName-Language, and open your main file and test file.
- Add
coding-dojo.elto your emacs load path, then add thedojo-new-projectcommand to the autoload list: (autoload 'dojo-new-project "coding-dojo" nil t) - Customize the
coding-dojogroup, setting:- the
*dojo-template-dir*variable to point to the coding-dojolanguagesdirectory (or your own template dir). - the
*dojo-project-dir*variable to point to the directory where you want your new projects to be created.
- the
That's it, now call dojo-new-project when you want to create a new project.
To add a new language craddle, just add a directory named after your language in the languages directory.
In this directory, put all the required files. All $main strings within these files will be replaced by the name you give to the project, and the file named main.extension will be renamed after your project's name (see examples in the languages directory).
The lib itself was written using TDD. Tests for coding-dojo.el are in the coding-dojo.elk file. They use elk-test.