testdown icon indicating copy to clipboard operation
testdown copied to clipboard

Turn your 'testthat' results into a Bookdown.

Results 7 testdown issues
Sort by recently updated
recently updated
newest added

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...

![image](https://user-images.githubusercontent.com/10470699/227316855-4bf26a33-cfa8-481d-8239-947efe268962.png) 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...