Skip to content

A declartive API testing tool

github.com/sigoden
2 pointssigoden1 comment
On HN

Comments

Disclaimer: I'm the author of gabbi.

It's great to see more and more API testing tools that use a format intending to be readable.

I personally think YAML is a bit more readable for humans so that's what I used when I created gabbi. Here's a similar test to one of the examples from apitest:

  tests:

  - name: httpbin post
    POST: https://httpbin.org/post
    verbose: true
    request_headers:
      content-type: application/json
    data:
      foo1: bar1
      foo2: Bar2

    response_headers:
      content-type: application/json
    response_json_paths:
      $.json.foo1: bar1
      $.json.foo2: Bar2
      $.headers.Host: httpbin.org
https://github.com/cdent/gabbi
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.