mikldk / roxytest

Inline testthat tests with roxygen2
95 stars 3 forks source link

FR: use_roxytest() #26

Open ColinFay opened 2 years ago

ColinFay commented 2 years ago

Given that all project need to have the following entry in the DESCRIPTION :

Roxygen: list(roclets = c("namespace", "rd", "roxytest::testthat_roclet"))

That would be great to have a roxytest::use_roxytest() function to append that without having to look for the exact syntax :)

Happy to try a PR at some point in time

ColinFay commented 2 years ago

That function could also run usethis::use_testthat() if verify_testthat_used () is FALSE

mikldk commented 2 years ago

@ColinFay Thanks for reporting. A PR would be much welcome!