katt
ex_machina
Our great sponsors
katt | ex_machina | |
---|---|---|
3 | 2 | |
117 | 1,868 | |
0.9% | 0.3% | |
0.6 | 6.8 | |
11 months ago | 2 months ago | |
Erlang | Elixir | |
Apache License 2.0 | MIT License |
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.
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.
ex_machina
-
Test Data Libraries for Elixir
The factory library ExMachina created by Thoughbot uses function names and generates an atom used to call factories. For example:
-
How to write test cases for databse related functions
The well known FactoryBot (FactoryGirl) from rails has a pretty good equivalent in Phoenix as ExMachina (https://github.com/thoughtbot/ex_machina) and does the job really well (thoughtbot is a pretty good and stable contributor too, so a nice Omakase plug-in!)
What are some alternatives?
faker - Faker is a pure Elixir library for generating fake data.
factory_girl_elixir - Minimal implementation of Ruby's factory_girl in Elixir.
espec - Elixir Behaviour Driven Development
FakerElixir - [unmaintained] FakerElixir generates fake data for you.
blacksmith - Data generation framework for Elixir
espec_phoenix - ESpec for Phoenix web framework.
mox - Mocks and explicit contracts in Elixir
wallaby - Concurrent browser tests for your Elixir web apps.
ponos - ponos is a simple yet powerful load generator written in erlang
hound - Elixir library for writing integration tests and browser automation
excheck - Property-based testing library for Elixir (QuickCheck style).
test_that_json - JSON-related helpers for your Elixir testing needs