Files
httprunner/cmd/cli/doc_test.go
2025-04-24 22:31:03 +08:00

17 lines
348 B
Go

package main
import (
"testing"
"github.com/httprunner/httprunner/v5/cmd"
"github.com/spf13/cobra/doc"
"github.com/stretchr/testify/assert"
)
// run this test to generate markdown docs for hrp command
func TestGenMarkdownTree(t *testing.T) {
addAllCommands()
err := doc.GenMarkdownTree(cmd.RootCmd, "../../docs/cmd")
assert.Nil(t, err)
}