Closed alegrey91 closed 1 year ago
This PR adds a new flag --tags under the ginkgo generate command. This flag allows the user to add the build tags that he needs for the tests.
--tags
ginkgo generate
Closes #1213
Example command:
ginkgo generate -tags "unit || e2e" test
This will generate the following file:
//go:build unit || e2e package main_test import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/ginkgo/v2/ginkgo" ) var _ = Describe("Test", func() { })
sorry for the delay - i was out on vacation! running this now.
This PR adds a new flag
--tags
under theginkgo generate
command. This flag allows the user to add the build tags that he needs for the tests.Closes #1213
Example command:
This will generate the following file: