From d3e4aae122a80fa0434dbfb207f684e0963bb1a7 Mon Sep 17 00:00:00 2001 From: Raphael Gruber Date: Fri, 15 Nov 2024 11:00:30 +0100 Subject: [PATCH] add .http get request --- handoff.go | 2 +- requests.http | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/handoff.go b/handoff.go index 45ef780..6bcede0 100644 --- a/handoff.go +++ b/handoff.go @@ -152,7 +152,7 @@ func New(opts ...Option) *Server { func (s *Server) Run(args []string) error { startupStart := time.Now() - // we want to make sure that the test suite functions only + // We want to make sure that the test suite functions only // log using the functions provided through the t struct // and not 'pollute' the server logs, so we need to redirect // the standard test loggers to /dev/null and use a custom one diff --git a/requests.http b/requests.http index f5edde7..c55c3b8 100644 --- a/requests.http +++ b/requests.http @@ -1,5 +1,12 @@ @url=http://localhost:1337 @ts=my-app +### Create new test run POST {{url}}/suites/{{ts}}/runs + +### Get existing test run + +@runId = {{$input run id? $value: 1}} + +GET {{url}}/suites/{{ts}}/runs/{{runId}}