dev
katt
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dev
-
Hurl, run and test HTTP requests with plain text
Great tool and documentation <3
Started investigating how it can be integrated into GitLab CI/CD in the most efficient way.
Simple - install Hurl using before_script every time into the used container image. Example in https://gitlab.com/everyonecancontribute/dev/hurl-playground...
Efficient - build a custom container image (the upstream container image behaves unexpected when overriding the entrypoint for CI/CD, need to investigate and create an issue) Example in https://gitlab.com/everyonecancontribute/dev/hurl-playground...
A quick example to check the website body can be achieved with
$ vim dnsmichi.at.hurl
katt
-
Beyond OpenAPI
What this misses is the curl response format.
Long time ago at Klarna we used this tool: https://github.com/for-GET/katt Here's an example: https://github.com/for-GET/katt/blob/master/doc/example-http...
- KATT (Klarna API Testing Tool) Is an HTTP-Based API Testing Tool for Erlang
-
Hurl, run and test HTTP requests with plain text
https://github.com/for-GET/katt is the same concept, but following the pattern matching philosophy. Written in Erlang, available as a CLI tool as well but needs the erlang runtime installed.
Code example: https://github.com/for-GET/katt/blob/master/doc/example-http...
Disclaimer: I'm one of the authors, thus biased, but the reason I'm mentioning katt is that the low barrier of entry for captures and asserts makes it a nice requirement tool for non-techs to write complex API scenarios.
What are some alternatives?
ponos - ponos is a simple yet powerful load generator written in erlang
test_that_json - JSON-related helpers for your Elixir testing needs
proper - PropEr: a QuickCheck-inspired property-based testing tool for Erlang
mix_erlang_tasks - Common tasks for Erlang projects that use Mix
hound - Elixir library for writing integration tests and browser automation
bypass - Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.
excheck - Property-based testing library for Elixir (QuickCheck style).
amrita - A polite, well mannered and thoroughly upstanding testing framework for Elixir
Quixir - Property-based testing for Elixir
ex_machina - Create test data for Elixir applications
Stubr - Stubr is a set of functions helping people to create stubs and spies in Elixir.
chemistry - Chemistry is a Testing Framework for Elixir