-
Notifications
You must be signed in to change notification settings - Fork 79
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
failing test suite #31
Comments
Hey @mattetti Goblin is a self tested framework, that means that all Goblin tests use Goblin. That being said, it's normal that whenever you run If you want to write and execute a new test, you can just add your test to the goblin_test.go file and then run that only test by calling go test -test.run {your test name}. ie: Anyways, the way to find out if the tests are running ok is by looking at the last line of the test run. If it says something like If you have more questions, please ask. Marcos. |
BTW, what are you looking forward to incorporate to Goblin?. If it's something that our users will find useful we can work to implement it together. |
Thanks Marcos, I'm looking at adding some basic assertions to g.Assert(x.IsEnabled).BeTrue()
g.Assert(x.IsAdmin).BeFalse()
g.Assert(err == nil).BeTrue()
g.Assert(x.IsEnabled).Check()
g.Assert(!x.IsAdmin).Check()
g.Assert(err == nil).Check()
Finally, I was wondering if you'd consider adding an alias for |
Matt, I do agree that we should expand our assertion library. We didn't put a lot of effort on doing that as we think Gomega is ok and saved us a lot of time when releasing Goblin. Anyways i've added the BeTrue and BeFalse assertions you mentioned as I think those are very useful. You can take a look at the change in #32 As soon as some other contributor ( @xetorthio ) approves the change, you'll be able to use it in your Goblin tests. As a bonus, I've also added the Eql shorthand as well. |
👍 thanks |
I'm running
go test
in this repo and the test suite reports a bunch of failures but I'm not sure if they are related to actual bugs or part of the testing.I'd like to add a new simple feature but the fact that I'm not sure if the test suite is passing or failing is a bit worrying.
The text was updated successfully, but these errors were encountered: