I’ve just released version 2.1.0 of Smoke, my integration test framework for command-line applications.
The major feature: if your command-line application produces files, you can now test their contents.
The release notes explain all:
Smoke v2.1.0 is out! It’s actually been in the works for months now—I kind of forgot about it.
- you can now compare files to their expected contents with
- works just like
- you can compare against inline text or another file
- use filters too
- revert directories afterwards to clean up with
- the files fixture has more examples
- set the working directory with
- use a shell command rather than a list of arguments
- much easier
sh on Linux/macOS, and
cmd on Windows (by default)
- you can override the shell with
- check out the shell fixture for more possibilities
- output comes per test now, not all at once (sorry about breaking that in v2.0)
- nomenclature is consistent between the test files and the output
- absolute paths are now properly supported
Please try it out and let me know what you think! You can download the binaries from the release page.