-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
XUnit test parallel execution #254
Comments
Yes please. I would really like to use Gomega in a project that has XUnit-style tests, but I'm hesitant to introduce it, since it cannot be used in parallel tests. |
I just pushed a change to master that fixes this and updated the docs. Assuming a
|
This works great, thank you! |
Great thanks! @smyrman wdyt? |
Just remember to (re-) initialize your func TestConfigLoadMissingRequiredFields(t *testing.T) {
requiredFieldNames := []string{
"ServerCACertPath",
"ClientCertPath",
"ClientKeyPath",
"Address",
"PollInterval",
}
for _, n := range requiredFieldNames {
fieldName := n // don't close over the iterator
t.Run("required field "+fieldName, func(t *testing.T) {
g := gomega.NewGomegaWithT(t)
... |
@onsi, this looks like the right interface to me - looking forward to test it after the holidays 👍 |
@onsi any chance you could cut a release with this commit? the downstream project I'm contributing to prefers that their dependencies be referenced by tag name. thanks! |
@onsi Please loop me in if you do ^ Also, I couldn't find the documentation referenced in the issue, just want to make sure everything got updated as necessary. |
can do - but can't get to it till tonight at the earliest. I'll write up instructions for how to do it and commit them as well that way other committers can own this, too and we can iterate on it |
hey @williammartin - I think it is probably safe to close this now? |
Yes, this issue is fixed. |
Sweeeeet. Thanks all. |
To quote the documentation:
Gomega appears to be a pretty decent matcher library, but it would be nice to get better parallel execution support when using XUnit tests, e.g. allowing the initialization of a handler instance:
The text was updated successfully, but these errors were encountered: