feat: support run testcases in specified folder path #1198

This commit is contained in:
debugtalk
2022-03-28 18:12:51 +08:00
parent 205657588e
commit 1e91b8cb0f
7 changed files with 121 additions and 17 deletions

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")