These are informal release notes for gabbi since version 1.0.0, highlighting major features and changes. For more detail see the commit logs on GitHub.
now preserve numeric types instead of casting to a string. This is
useful when servers are expecting strong types and tests want to
send response data back to the server.
Better failure reporting when using gabbi-run with multiple files. Test names are based on the files and a summary of failed files is provided at the end of the report.
Effectively capture a failure in a fixture and report the traceback. Without this some test runners swallow the error and discovering problems when developing fixtures can be quite challenging.
Thanks to Samuel Fekete, tests can use the
to refer to any prior test in the same file, not just the one
immediately prior, when doing substitutions.
Filenames used to read data into tests using the
may now use pathnames relative to the YAML file. See Data.
When using pytest to load tests, a new
mechanism is available which avoids warnings produced in when using
a version of pytest greater than
When verbosely displaying request and response bodies that are JSON, pretty print for improved readability.
Allow gabbi-run to accept multiple filenames as command line arguments instead of reading tests from stdin.
Switch from response handlers to Content Handlers to allow more flexible processing of both response _and_ request bodies.
Add inner fixtures for per test fixtures, useful for output capturing.
test_loader_name arg to
gabbi.driver.build_tests() to override the prefix of the
pretty printed name of generated tests.
String values in JSONPath matches may be wrapped in
/.../` to be
treated as regular expressions.
Better documentation of how to run gabbi in a concurrent environment. Improved handling of pytest fixtures and test counts.
Correctly support IPV6 hosts.
Introduce support for loading and running tests with pytest.
Use urllib3 instead of httplib2 for driving HTTP requests.
tests: - name: a simple get url: /some/path method: get
1.7.0 also makes it possible to:
tests: - name: a simple get GET: /some/path
Any upper case key is treated as a method.
The start of improvements and extensions to JSONPath
handling. In this case the addition of the
The following people have contributed code to gabbi. Thanks to them. Thanks also to all the people who have made gabbi better by reporting issues and their successes and failures with using gabbi.
- Chris Dent
- Mehdi Abaakouk
- Tom Viner
- Jason Myers
- Ryan Spencer
- Kim Raymoure
- Travis Truman
- Samuel Fekete
- Michael McCune
- Imran Hayder
- Julien Danjou
- Danek Duvall
- Marc Abramowitz