Skip to content
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

Watching does not work with build tags #954

Open
carsonoid opened this issue Mar 29, 2022 · 1 comment
Open

Watching does not work with build tags #954

carsonoid opened this issue Mar 29, 2022 · 1 comment

Comments

@carsonoid
Copy link

Command

$ ginkgo watch --tags e2e ./test/e2e/

Output

Identified 1 test suite.  Locating dependencies to a depth of 1 (this may take a while)...
Watching 0 suites:
Failed to watch e2e: no buildable Go source files in test/e2e
Running Suite: Server Suite - /home/carsonoid/test-project/test/e2e
=======================================================================
Random Seed: 1648587967

Will run 15 of 15 specs
•••••••••••••••

Ran 15 of 15 Specs in 0.043 seconds
SUCCESS! -- 15 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS

Interestingly, it does actually find the test suite and run it. But it does in fact not watch for changes and re-run tests. The watch did work before the build tag was added. And ginkgo watch --tags e2e ./test/e2e/ runs the suite just fine

Version Info:

$ ginkgo version
Ginkgo Version 2.1.3

$ grep ginkgo go.mod
	github.com/onsi/ginkgo/v2 v2.1.3
@onsi
Copy link
Owner

onsi commented Mar 31, 2022

thanks for reporting this. I'll need to investigate and circle back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants