Smoke v2.1 is out!
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.
Notable features:
- you can now compare files to their expected contents with
files:
- works just like
stdout
andstderr
- you can compare against inline text or another file
- use filters too
- revert directories afterwards to clean up with
revert:
- the files fixture has more examples
- set the working directory with
working-directory:
- check out the different usages in the working-directory fixture
- use a shell command rather than a list of arguments
- much easier
- uses
sh
on Linux/macOS, andcmd
on Windows (by default)- you can override the shell with
shell:
- check out the shell fixture for more possibilities
UX improvements:
- 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
Bug fixes:
- 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.
If you enjoyed this post, you can subscribe to this blog using RSS. I personally use Feedly; you can subscribe here.
Maybe you have something to say. You can comment below, email me, or toot at me. I love feedback. I also love gigantic compliments, so please send those too.