inst/example_tests/multiple_files/test_file1.R

heavyCalc <- function() {
  
  Sys.sleep(runif(1, 0, 1)) # sleep for 0 to 1 seconds
  TRUE
}

expect_true(heavyCalc())
expect_true(TRUE, info = "Some info")

Try the tinytest2JUnit package in your browser

Any scripts or data that you put into this service are public.

tinytest2JUnit documentation built on June 22, 2024, 9:18 a.m.