Skip to content

Commit

Permalink
fix bug when no report file is given
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrode committed Sep 6, 2022
1 parent 3ca76f4 commit 8ccd2ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ccd2ab

Please sign in to comment.