- optimisation: only scan for plugins on start of backend
- be sure to use strict and warnings in the plugins
- in ebug and ebug_http, allow examining a variable using YAML
At the moment I'm busy adding more prerequisites (packagers will love me), but I'd like to show off one little module that came out of ebug: Test::Expect, which allows automated driving and testing of terminal-based programs (a la Expect program).
The reason I needed it was that I have a shell-like program, ebug, which I needed to test. I want to put commands in, check what output I get. There wasn't a test module which did exactly this, so I took Expect::Simple and wrapped it, adding a dead simple testing API. Once you've set it up, all you need to do is call expect with your input and expected output. For example, check out ebug.t test. Test your shell-like programs! Enjoy the goodness!
Broth-filled dimsum. Also, Test::Expect! 0 Comments More | Login | Reply /