The Hurl team is happy to announce a new version of Hurl, 1.5.0. Hurl is a command line tool that runs HTTP requests defined in a simple plain text format.
So, what’s new in 1.5.0?
Hurl relies upon curl for the HTTP engine. We’ve improved the version output
--version/-h to provide informations about which libcurl Hurl is linked with:
$ hurl --version hurl 1.5.0 libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11
Now tests can be launched with
--glob option. This is particularly useful on
Windows where it is less easy to
find your test:
$ hurl --glob "tests/**/*.hurl"
This command will run
tests/project2/test3.hurl. Note that to avoid your shell accidentally expanding glob patterns
before Hurl handles them, you should use single quotes or double quotes around each pattern.
Before 1.5.0, to inject variables in a Hurl file you can
use command line option, with
$ hurl --variable host=example.org --variable user=jc test.hurl
use an input file, with
file.envdefining each variable on a new line:
Variables are injected with
$ hurl --variables-files file.env test.hurl
Starting in 1.5.0, environment variables can be used to inject variables:
$ echo HURL_host=example.org $ echo HURL_user=jc $ hurl test.hurl
HURL_foo environment variables will resolve as a
foo variable inside
the Hurl file.
Test report can be exported in JUnit format:
$ hurl --test --report-junit /tmp/result.xml *.hurl
To be consistent, we’ve also rename
--html options to
--report-html. Of course,
one can combine the two kind of reports:
$ hurl --test --report-junit /tmp/result.xml --report-html /tmp/report/ *.hurl
There are other changes and bug fixes in the Hurl 1.5.0 release: check out the release note!
And, finally, a big thanks to our contributors!