I created a YAML-based API Testing framework in Rust

github.com

1 point

cd-4

3 days ago


3 comments

cd-4 3 days ago

Are you tired of weighty testing frameworks? Yapitest is simple. Provide data to send to the endpoint, and assert data that comes as response. A test looks as simple as this:

``` test-create-and-get-post: setup: create-user steps: - path: /api/post/create id: create-post method: POST headers: API-Token: $setup.token data: title: Some Title body: Some message assert: status-code: 201 - path: /api/post/$create-post.response.post_id assert: body: title: "Some Title" body: "Some message" ```

More features (regex support, timing assertions) coming soon!

turtleyacht 3 days ago

Is it compatible with Test Anything Protocol?

  • cd-4 3 days ago

    At this moment no I went with CTRF and I was not aware of TAP! I’ll take a closer look