I've written a command line tool that I want to test (I'm not looking to run unit tests from command line). I want to map a specific set of input options to a specific output. I haven't been able to find any existing tools for this. The application is just a binary and could be written in any language but it accepts POSIX options and writes to standard output.
Something along the lines of:
- For each known set of input options:
- Launch application with specified input.
- Pipe output to a file.
- Diff output to stored (desired) output.
- If diff is not empty, record error.
(Btw, is this what you call an integration test rather than a unit test?)
Edit: I know how I would go about writing my own tool for this, I don't need help with the code. What I want to learn is if this has already been done.
.csvfile opened with MS Excel, the tests that worked with that file failed, because the file was already in use by another process.