Hacker News

cd-4
I created a YAML-based API Testing framework in Rust github.com

cd-4op9 hours 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!

turtleyacht7 hours ago

Is it compatible with Test Anything Protocol?

cd-4opan hour ago

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

hn-front (c) 2024 voximity
source