-
-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to have a single suite that will run tests in sub packages? #1350
Comments
yes this can be done and some projects (e.g. kubernetes) organize their tests in this way. The trick is to define your specs within the
these tests can then be imported in
any Ginkgo DSL commands in |
FWIW I personally don’t usually write tests this way and just give each package its own test suite and run |
We want to have the following structure:
Where main_test.go contains the main entry point of the test suite, and the 2 sub packages
a
andb
contains the actual tests.Is that something we can achieve with ginkgo or is there a limitation with golang test framework/ginkgo in achieving this?
Currently when running this structure, anything inside
a_test_.go
andb_test.go
are not invoked.The text was updated successfully, but these errors were encountered: