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

Should empty test_that throw a skip? #413

Closed
hadley opened this issue Mar 17, 2016 · 1 comment
Closed

Should empty test_that throw a skip? #413

hadley opened this issue Mar 17, 2016 · 1 comment
Labels
expectation 🙀 feature a feature request or enhancement
Milestone

Comments

@hadley
Copy link
Member

hadley commented Mar 17, 2016

So it's easy to notice when you've forgotten to add an expectations

@gaborcsardi
Copy link
Member

I used to put code in test_that without any expectations, just to make sure that it runs. This was before expect_silent(). Sometimes I put in an expect_true(TRUE) at the end, just to see some output, sometimes not.

Anyway, a skip is not an error, just a mild message, and I agree it could be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expectation 🙀 feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants