1.0.0-alpha.35 • Published 2 years ago
@capterqa/cli v1.0.0-alpha.35
@capterqa/cli
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).
- 🧑💻 Write tests in YAML
- 🔎 Run the same tests locally, in CI, or as a cron job to monitor your live APIs
- 🏃♂️ Takes less than a minute to get started
How it works:
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
Demo
Installation
# npm
npm i @capterqa/cli --save-dev
# yarn
yarn add @capterqa/cli --dev
During the alpha, you need to add
GITHUB_TOKEN
to.env
for the CLI install.
Getting started
Follow the instructions in the documentation to get started:
API
License
The Capter CLI is provided under the MIT License. See LICENSE for details.
1.0.0-alpha.35
2 years ago
1.0.0-alpha.34
3 years ago
1.0.0-alpha.30
3 years ago
1.0.0-alpha.32
3 years ago
1.0.0-alpha.29
3 years ago
1.0.0-alpha.28
3 years ago
1.0.0-alpha.27
3 years ago
1.0.0-alpha.26
3 years ago
1.0.0-alpha.23
3 years ago
1.0.0-alpha.22
3 years ago
1.0.0-alpha.25
3 years ago
1.0.0-alpha.24
3 years ago
1.0.0-alpha.21
3 years ago
1.0.0-alpha.20
3 years ago
1.0.0-alpha.19
3 years ago
1.0.0-alpha.18
3 years ago
1.0.0-alpha.16
3 years ago
1.0.0-alpha.15
3 years ago
1.0.0-alpha.14
3 years ago