mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-10 17:43:00 +08:00
change: update docs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Release History
|
||||
|
||||
## v4.1.5 (2022-06-26)
|
||||
## v4.1.5 (2022-06-27)
|
||||
|
||||
**go version**
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user