-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
How to integrate with xgo? #1400
Comments
hey there - I've never used But
to see if that works. If it does we'll need to teach the Ginkgo cli how to choose which I could imagine a hidden GINKGO_GOBINARY="xgo" environment variable that reconfigures that line. |
Nope, that doesn't work either. |
odd. what happens if you go to your |
Oh, pardon my confusion, I messed up with xgo setup in my terminal (xgo requires that its binary is directly available in the Both |
Ok sounds good. Sounds like the last thing we need to do is allow you to override which Go binary ginkgo uses. Would you be up for submitting a PR? We'd want to add some code to: to look for a We'd then need to update the docs: to mention the environment variable. WDYT? |
Maybe able to specify the whole building command is more feasible? Like GINKGO_BUILDTEST_COMMAND? |
hey sorry for the delay. my understanding of |
Hey, thanks for the Ginkgo, it is nice to use, love it.
I would like to use xgo mocks to easily test various failure modes of underlying libraries, but it doesn't seem to work.
For example, I want to convert following go test (NB: it must be executed with
xgo test
to work):patch_test.go
Run results
to Ginkgo (after bootstrapping):
patch_suite_test.go
patch_test.go
Run results
But as it can be seen that when test run either via
xgo test .
or viaxgo exec ginkgo ./...
, xgo loses its under-the-hood tweaks. I suppose that ginkgo somehow re-executes tests in a new process maybe (didn't dive into ginkgo internals yet)Is it possible to use xgo with ginkgo? How to properly set it up?
The text was updated successfully, but these errors were encountered: