in reply to How to get started in test first programming without writing modules? package ?
You don't really need to split it into 3 files. Once I encountered the modulino concept, I've been playing around with modules having their own test fixtures inside them. So if you call the module directly, it will test itself. So you'd need only the module (.pm) for the code and tests, and you can just use a .pl file to use your module for other things.
If you wanted the application, module and tests all in a single file, you can do that, too. For that, I'd put it into test mode with a command-line switch or something, though.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get started in test first programming without writing modules? package ?
by Gulliver (Monk) on May 16, 2011 at 17:19 UTC |