Skip to content

Commit

Permalink
Merge pull request #9632 from prezha/fix-TestGenerateDocs
Browse files Browse the repository at this point in the history
Update generate-docs test to include --help flag
  • Loading branch information
priyawadhwa authored Nov 9, 2020
2 parents 18b0c00 + 432762f commit 07ff90c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/minikube/cmd/generate-docs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/spf13/pflag"
"k8s.io/minikube/pkg/generate"
)

func TestGenerateDocs(t *testing.T) {
pflag.BoolP("help", "h", false, "") // avoid 'Docs are not updated. Please run `make generate-docs` to update commands documentation' error
dir := "../../../site/content/en/docs/commands/"

for _, sc := range RootCmd.Commands() {
Expand Down

0 comments on commit 07ff90c

Please sign in to comment.