greta-dev / greta

simple and scalable statistical modelling in R
https://greta-stats.org
Other
524 stars 63 forks source link

explore using expect_no_error(), expect_no_warning(), expect_no_message(), and expect_no_condition() #563

Open njtierney opened 1 year ago

njtierney commented 1 year ago

In the most recent (3.1.5) release of testthat:

https://github.com/r-lib/testthat/releases/tag/v3.1.5

New experimental expect_no_error(), expect_no_warning(), expect_no_message(), and expect_no_condition() for asserting the code runs without an error, warning, message, or condition

njtierney commented 1 year ago

Could replace expect_ok and perhaps other cases