When I saw this I was thinking of IntelliJ's HTTP client[1]. I hope that a standardised format can come out of this.
[1] https://www.jetbrains.com/help/idea/http-client-in-product-c...
[1] https://www.jetbrains.com/help/idea/http-client-in-product-c...
We keep working on Hurl because our main goal is to be able to easily run integration tests on a CI or locally in a terminal, which can be difficult with IntelliJ.
But yes, this shows that is really a need for such a tool.
For reference, IntelliJ format:
GET https://httpbin.org/status/200
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
%}
### Failed test: check response status is 200
GET https://httpbin.org/status/404
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
%}I completely agree with this. Its pushed me away from using IntelliJ's feature. I will always prefer a tool that can be built into a CI pipeline over one that has handy IDE integration.
Do you use it as part of a web dev workflow?
We test both HTML and JSON endpoints and those integration tests are a good safety belt.