mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-20 20:11:58 +08:00
docs: update hrp cmd docs
This commit is contained in:
16
cmd/cli/doc_test.go
Normal file
16
cmd/cli/doc_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user