Skip to content

Commit a0fb6cd

Browse files
committed
Quiet example tests
1 parent c0c1fff commit a0fb6cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/testthat/test-test-example.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ test_that("can test documentation from path or Rd object", {
22
rd_path <- test_path("../../man/expect_length.Rd")
33
skip_if_not(file.exists(rd_path))
44

5-
test_example(rd_path)
6-
test_rd(tools::parse_Rd(rd_path))
5+
capture_output({
6+
test_example(rd_path)
7+
test_rd(tools::parse_Rd(rd_path))
8+
})
79
})
8-
910
test_that("returns false if no examples", {
1011
rd_path <- test_path("../../man/test_examples.Rd")
1112
skip_if_not(file.exists(rd_path))

0 commit comments

Comments
 (0)