This tool is inspired by the http extension for Visual Studio Code. It allows you to run tests in .http files from the command line.
go install github.com/MordFustang21/req@latestreq [flags] <file>This is an example of an .http file. Multiple tests can be run in a single file.
More examples and docs can be found at Here
@variable=test-variable
### Named requests
GET https://jsonplaceholder.typicode.com/todos/1
// Header section
Accept: application/json
// Body section
{
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
}- Run tests in
.httpfiles - Log test results
- Improve UI via bubbletea?
- Syntax highlighting on output