mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
fix: ignore if testcase config is not specified
This commit is contained in:
@@ -61,7 +61,7 @@ func (path *TestCasePath) ToTestCase() (*TestCase, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tc.Config == nil {
|
if tc.Config == nil {
|
||||||
return nil, errors.New("incorrect testcase file format, expected config in file")
|
tc.Config = &TConfig{Name: "testcase name"}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = tc.MakeCompat()
|
err = tc.MakeCompat()
|
||||||
|
|||||||
Reference in New Issue
Block a user