mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-06 06:51:23 +08:00
change: update docs
This commit is contained in:
@@ -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