change: update docs

This commit is contained in:
debugtalk
2022-06-27 16:56:10 +08:00
parent e816f8cb5f
commit d2c80cd2b7
17 changed files with 15 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
# Release History
## v4.1.5 (2022-06-26)
## v4.1.5 (2022-06-27)
**go version**

View File

@@ -37,4 +37,4 @@ Copyright 2017 debugtalk
* [hrp startproject](hrp_startproject.md) - create a scaffold project
* [hrp wiki](hrp_wiki.md) - visit https://httprunner.com
###### Auto generated by spf13/cobra on 26-Jun-2022
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@@ -42,4 +42,4 @@ hrp boom [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 26-Jun-2022
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@@ -28,4 +28,4 @@ hrp build $path ... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 26-Jun-2022
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@@ -22,4 +22,4 @@ hrp convert $path... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 26-Jun-2022
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@@ -16,4 +16,4 @@ hrp pytest $path ... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 26-Jun-2022
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@@ -35,4 +35,4 @@ hrp run $path... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 26-Jun-2022
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@@ -21,4 +21,4 @@ hrp startproject $project_name [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 26-Jun-2022
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@@ -16,4 +16,4 @@ hrp wiki [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 26-Jun-2022
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@@ -1,5 +1,5 @@
{
"project_name": "demo-empty-project",
"create_time": "2022-06-26T11:26:24.132921+08:00",
"create_time": "2022-06-27T16:52:45.660111+08:00",
"hrp_version": "v4.1.4"
}

View File

@@ -1,5 +1,5 @@
{
"project_name": "demo-with-go-plugin",
"create_time": "2022-06-26T11:21:39.64233+08:00",
"create_time": "2022-06-27T16:51:52.779837+08:00",
"hrp_version": "v4.1.4"
}

View File

@@ -1,5 +1,5 @@
{
"project_name": "demo-with-py-plugin",
"create_time": "2022-06-26T11:21:40.23509+08:00",
"create_time": "2022-06-27T16:51:54.32061+08:00",
"hrp_version": "v4.1.4"
}

View File

@@ -1,5 +1,5 @@
{
"project_name": "demo-without-plugin",
"create_time": "2022-06-26T11:26:19.127696+08:00",
"create_time": "2022-06-27T16:52:45.363472+08:00",
"hrp_version": "v4.1.4"
}

View File

@@ -62,14 +62,13 @@ func Run(outputType OutputType, outputDir, profilePath string, args []string) {
// loads source file and convert to TCase format
tCase, err := LoadTCase(path)
if err != nil {
log.Warn().Err(err).Str("path", path).Msg("construct case loader failed")
log.Warn().Err(err).Str("path", path).Msg("convert source file failed")
continue
}
caseConverter := &TCaseConverter{
SourcePath: path,
OutputDir: outputDir,
OutputType: outputType,
TCase: tCase,
}
@@ -165,7 +164,6 @@ func LoadTCase(path string) (*hrp.TCase, error) {
type TCaseConverter struct {
SourcePath string
OutputDir string
OutputType OutputType
TCase *hrp.TCase
}

View File

@@ -20,7 +20,6 @@ func LoadJSONCase(path string) (*hrp.TCase, error) {
return nil, errors.New("invalid json file")
}
// convert json case to TCase
err = caseJSON.MakeCompat()
if err != nil {
return nil, err

View File

@@ -21,6 +21,6 @@ func LoadSwaggerCase(path string) (*hrp.TCase, error) {
return nil, errors.New("invalid swagger file")
}
// convert swagger to TCase
// TODO: convert swagger to TCase
return nil, nil
}

View File

@@ -20,7 +20,6 @@ func NewYAMLCase(path string) (*hrp.TCase, error) {
return nil, errors.New("invalid yaml file")
}
// convert json case to TCase
err = caseJSON.MakeCompat()
if err != nil {
return nil, err