feat: support run testcases in specified folder path #1198

This commit is contained in:
debugtalk
2022-03-28 18:44:16 +08:00
parent e31f23cbe0
commit f84bf3b1a6
7 changed files with 121 additions and 17 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ func (tc *TCase) ToTestCase() (*TestCase, error) {
var apiFullPath string
if apiPath, ok := step.API.(string); ok {
apiFullPath = filepath.Join(projectRootDir, apiPath)
} else if apiPath, ok := step.API.(APIPath); ok {
} else if apiPath, ok := step.API.(*APIPath); ok {
apiFullPath = filepath.Join(projectRootDir, apiPath.GetPath())
} else {
return nil, errors.New("invalid api format")