Hacker News new | ask | show | jobs
by tmh88j 2418 days ago
>Testing an HTTP API involves running the server, and running a client against that.

That's exactly what tools like Postman are used for. How are you doing any testing during the development process if you're not hosting your web API even locally?

>I haven't tried it, but I think it'd be quite awkward to get a server setup from Postman

There's no need to as I mentioned that you're going to be hosting it somewhere during development anyway.

1 comments

> There's no need to as I mentioned that you're going to be hosting it somewhere during development anyway.

You will probably host 1 version which is infrastructure heavy and not very flexible. Take 10 developers working on the API. They all need to test their changes. Automatically if possible. Hosting external elements like the database and others is a pain eased by Docker.

Hmm, seems like the workflow you've described is a bottleneck leading to this. Wouldn't you have some kind of test/staging environment that is accessible for this purpose?