Crates.io | capter |
lib.rs | capter |
version | 1.0.0-alpha.35 |
source | src |
created_at | 2021-01-14 09:33:20.921169 |
updated_at | 2022-06-16 14:52:22.374372 |
description | Capter is a lightweight end-to-end testing tool for APIs. |
homepage | https://capter.io |
repository | https://github.com/capterqa/cli |
max_upload_size | |
id | 341825 |
size | 801,319 |
Capter is a lightweight end-to-end testing tool for APIs. It's language agnostic and can test APIs written in any language (Node.js, Go etc).
Create a workflow file in a .capter
folder:
# .capter/products.yml
name: products
steps:
- name: fetch all products
id: products
url: ${{ env.URL }}/api/products
assertions:
- !expect status to_equal 200
- !expect body to_be_array
- name: fetch first product
url: ${{ env.URL }}/api/posts/${{ products.response.body.0.id }}
assertions:
- !expect body.id to_equal ${{ products.response.body.0.id }}
Then run the CLI:
URL=http://localhost:3000 capter test
Follow the instructions in the documentation to get started:
The Capter CLI is provided under the MIT License. See LICENSE for details.