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

Feature Request: Ignore() #60

Closed
jayd3e opened this issue Aug 7, 2017 · 2 comments
Closed

Feature Request: Ignore() #60

jayd3e opened this issue Aug 7, 2017 · 2 comments

Comments

@jayd3e
Copy link

jayd3e commented Aug 7, 2017

There should be a way to ignore tests if necessary. A great use case for this is a situation where you need to account for a test in the future, but it doesn't apply now. Your choices at the moment are to either delete it or comment the test out. I would prefer to just be able to ignore it. Another great use-case is integration tests with third parties that you don't always want to run. You could implement it like so:

g.Ignore("Should add two numbers ", func() {
    g.Assert(1+1).Equal(2)
})

Testing frameworks in Scala have a similar feature.

@marcosnils
Copy link
Member

Fixed by #62

@jayd3e
Copy link
Author

jayd3e commented Aug 21, 2017

@marcosnils awesome! Excited to use this feature. I have to say though that Xit is far less clear than a name like Ignore. Not sure why it was selected.

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