Files
httprunner/convert/to_yaml.go
2025-03-05 11:04:02 +08:00

14 lines
309 B
Go

package convert
import "github.com/httprunner/httprunner/v5/internal/builtin"
// convert TCase to YAML case
func (c *TCaseConverter) toYAML() (string, error) {
yamlPath := c.genOutputPath(suffixYAML)
err := builtin.Dump2YAML(c.tCase, yamlPath)
if err != nil {
return "", err
}
return yamlPath, nil
}