Re:Hoppscotch: Open-source alternative to Postman
by lambic on Monday February 28, 2022 @07:38AM
(#30499163)
Or even avoid programming languages as much as possible. Most of my API tests are done with curl and jq. (Which I blogged about here: https://lambic.ca/blog/api-testing-with-curl/)
[ Parent
| on HN ]
Re:Hoppscotch: Open-source alternative to Postman
by SideburnsOfDoom on Monday February 28, 2022 @07:43AM
(#30499203)
I think you're actually testing with bash (and included tools) there.
Which is fine, bash is a programming language of sorts (I see "if" statements!), and you can store the tests in text files in git. If those are the tools that you like to use, and it works, great.
Re:Hoppscotch: Open-source alternative to Postman
by lambic on Monday February 28, 2022 @08:04AM
(#30499373)
That's why I said "as much as possible". I keep the bash scripts as linear as possible so they are "scripts" rather than "programs".
We started out using cypress, which I was convinced was the wrong tool for testing APIs so I switched to this approach, which sped up our CI deployments significantly.
Re:Hoppscotch: Open-source alternative to Postman
by lf-non on Monday February 28, 2022 @08:11AM
(#30499437)
Yeah, I have been using httpie (which offers a better DX) in similar fashion.
It also pairs well with (n)vim - I can just run :.!http whatever and have the response injected into a vim buffer where I can inspect or slice and dice the json with my usual vim workflow.