dtolabs/rerun — Issue #7: Wrong test directory structure created by stubbs: add-command
Author: rkrombho
Created: 2011-12-07 19:26:54+00:00
State: open

Whily playing around a bit with rerun I noticed that tests do not work out of the box.
The README.md of the stubbs module says the directory structure would be:
└── tests
├── commands
│ └── dance
│ ├── default.sh
│ └── metadata
└── metadata

but that's not what gets generated.
the directory 'commands' and $NAME seem to be exchanged.
See e.g. https://github.com/dtolabs/rerun/blob/master/modules/stubbs/commands/add-command/default.sh#L100
Shouldn't it be mkdir -p $RERUN_MODULES/$MODULE/tests//commands/$NAME ?

At least the testing worked for me after manually restructuring the directories.