From eed9a78bbfcfbe66df30c46765425198316e17d2 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sun, 27 Mar 2022 11:28:46 +0800 Subject: [PATCH] change: move html template to scaffold --- hrp/internal/{ => scaffold/templates}/report/template.html | 0 hrp/runner.go | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename hrp/internal/{ => scaffold/templates}/report/template.html (100%) diff --git a/hrp/internal/report/template.html b/hrp/internal/scaffold/templates/report/template.html similarity index 100% rename from hrp/internal/report/template.html rename to hrp/internal/scaffold/templates/report/template.html diff --git a/hrp/runner.go b/hrp/runner.go index 7bb0de3d..828cf8d8 100644 --- a/hrp/runner.go +++ b/hrp/runner.go @@ -238,6 +238,7 @@ func (r *caseRunner) reset() *caseRunner { func (r *caseRunner) run() error { config := r.TestCase.Config + log.Info().Str("testcase", config.Name).Msg("run testcase start") // init plugin var err error if r.parser.plugin, err = initPlugin(config.Path, r.hrpRunner.pluginLogOn); err != nil { @@ -251,7 +252,6 @@ func (r *caseRunner) run() error { if err := r.parseConfig(config); err != nil { return err } - log.Info().Str("testcase", config.Name).Msg("run testcase start") r.startTime = time.Now() for index := range r.TestCase.TestSteps { @@ -1048,7 +1048,7 @@ func setBodyBytes(req *http.Request, data []byte) { req.ContentLength = int64(len(data)) } -//go:embed internal/report/template.html +//go:embed internal/scaffold/templates/report/template.html var reportTemplate string func (s *Summary) genHTMLReport() error {