HN user

ptrthomas

55 karma

https://karatelabs.io

Posts3
Comments15
View on HN

Congrats on the launch ! I'm the lead dev of Karate[1] and was wondering if you had come across it. I strongly agree with you that collaboration should be via Git and the IDE[2] and that traditional solutions fall short. I hope Karate's syntax passes your "memory friendly" test :) We get regular feedback is that it is easy to read and even non-programmers can pick it up.

One thing I feel we do really well is chaining of HTTP requests. And we have plugins for IntelliJ[3] and Visual Studio Code[4].

Maintaining a tool like this as open-source is a big effort, all the best !

[1] https://github.com/karatelabs/karate

[2] https://www.karatelabs.io/first-class-citizens

[3] https://plugins.jetbrains.com/plugin/19232-karate

[4] https://marketplace.visualstudio.com/items?itemName=karatela...

When you have a basic API test which makes an HTTP call and validates the response, it is quite simple. We've seen teams get started by just referring to an existing test or example. But you are right, when you start getting into complex business-logic or assertions, you will start using JavaScript. What people seem to like about Karate is that you can start off simple, but the tool can flex as you learn more.

To be honest my experience with Storybook is limited, and I see it more specialized for design-system consistency and review. Karate is a generic browser automation framework, which can do cross-browser testing. With some tweaks it could possibly complement Storybook, for instance, here is an example of an accessibility test-report: https://twitter.com/getkarate/status/1338892932691070976

Thanks for the pointer, we will certainly explore the possibilities here!

Postman is a "UI driven" tool, it is great for exploratory testing of APIs and sharing the knowledge on how you call an API (e.g. collections) with others.

But Karate tests are scripts that can be checked into version-control just like any other code in your team.

Karate allows you to write hybrid tests, which means you can switch between API calls and UI actions within the same test script. You can also re-use API tests as performance tests with Karate. Tests are executed in parallel and you get a single HTML report.

Finally, in my opinion - the assertions that Karate gives you out of the box for complex JSON payloads are hard to beat.