-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
expectation 🙀featurea feature request or enhancementa feature request or enhancementhelp wanted ❤️we'd love your help!we'd love your help!
Description
It makes it harder to debug a failing test because it's misleading.
> testthat::expect_warning("no warning", "something", ignore.case = TRUE)
Error: "no warning" did not throw the expected warning.
Warning message:
1 components of `...` were not used.
We detected these problematic arguments:
* `ignore.case`
Did you misspecify an argument?
You can even see it from a passing test:
> testthat::expect_warning("no warning", NA, ignore.case = TRUE)
Warning message:
1 components of `...` were not used.
We detected these problematic arguments:
* `ignore.case`
Did you misspecify an argument?
Metadata
Metadata
Assignees
Labels
expectation 🙀featurea feature request or enhancementa feature request or enhancementhelp wanted ❤️we'd love your help!we'd love your help!