Skip to content

MordFustang21/req

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

req Is a cli tool executing tests in .http files

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.

Installation

go install github.com/MordFustang21/req@latest

Usage

req [flags] <file>

Example 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
}

Goals

  • Run tests in .http files
  • Log test results
  • Improve UI via bubbletea?
  • Syntax highlighting on output

About

req Is a cli tool executing tests in .http files

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages