From 8ccd2ab571051efbec7c8d995219db939b7f35c0 Mon Sep 17 00:00:00 2001 From: Martin Rode Date: Tue, 6 Sep 2022 08:02:53 +0200 Subject: [PATCH] fix bug when no report file is given --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0145aeb..1b76167 100644 --- a/main.go +++ b/main.go @@ -158,7 +158,9 @@ func runApiTests(cmd *cobra.Command, args []string) { server := Config.Apitest.Server reportFormat = Config.Apitest.Report.Format - reportFile = absPath(Config.Apitest.Report.File) + if Config.Apitest.Report.File != "" { + reportFile = absPath(Config.Apitest.Report.File) + } rep := report.NewReport() rep.StatsGroups = int(reportStatsGroups)