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

Tests for no errors, no warnings, no messages, no output, no match #219

hadley opened this Issue Jan 9, 2015 · 1 comment


None yet
1 participant
Copy link

hadley commented Jan 9, 2015

Deprecate not() in favour of that approach. General negations add a lot of extra work for little gain


This comment has been minimized.

Copy link
Member Author

hadley commented Feb 9, 2015

Or just add nothing() sentinel value. Or maybe silent()?

expect_warnings(1 + 2, none())
expect_warnings(1 + 2, silent())
expect_warnings(1 + 2, nothing())


expect_no_warning(1 + 2)
expect_no_warnings(1 + 2)
expect_warning_none(1 + 2)
expect_warningless(1 + 2)
expect_absense_of_warnings(1 + 2)
dont_expect_warnings(1+ 2)

@hadley hadley referenced this issue Sep 28, 2015


expect_silent() #261

@hadley hadley modified the milestone: 0.11.0 Sep 29, 2015

@hadley hadley closed this in 3021c1f Sep 29, 2015

krlmlr referenced this issue in krlmlr/testthat Oct 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.