fix: unittest

This commit is contained in:
xucong053
2022-05-27 16:40:17 +08:00
parent f2a9e653df
commit 2bf916deb3
47 changed files with 87 additions and 1366 deletions

View File

@@ -2,7 +2,6 @@ package hrp
import (
"fmt"
"github.com/httprunner/httprunner/v4/hrp/internal/build"
"os"
"os/signal"
"path/filepath"
@@ -12,6 +11,7 @@ import (
"github.com/httprunner/funplugin"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/v4/hrp/internal/build"
"github.com/httprunner/httprunner/v4/hrp/internal/sdk"
)
@@ -20,6 +20,7 @@ const (
hashicorpGoPluginFile = "debugtalk.bin" // built from hashicorp go plugin
hashicorpPyPluginFile = "debugtalk_gen.py" // used for hashicorp python plugin, automatically generated by HRP
debugtalkPyFile = "debugtalk.py" // write by user
projectInfoFile = "proj.json" // used for ensuring root project
)
func initPlugin(path string, logOn bool) (plugin funplugin.IPlugin, pluginDir string, err error) {