testdown
testdown copied to clipboard
Turn your 'testthat' results into a Bookdown.
Follow: https://github.com/ThinkR-open/prepare-for-cran
I'm wondering if you have any advice on how to add the testdown report to a packages pkgdown navbar?
As user, i'd would like to use "expected" in my tests because today, if you use it, testdown detect it as a test. The report looks strange. Here an exmaple...
 reprex : the only test is : ``` test_that("my_fun works", { }) ```
After "Result Overview", it would be nice to have the code coverage
Kable does not work correctly if two empty lines appear in the text. `gsub(pattern = "\\n\\n", replacement = "\\n", text)` should solve the problem.
Currently `get_desc()` searches for the line above or two lines above an expectation to find a description tag. Then, if it is a multiline description, i.e., two lines, then the...