inst/example_tests/heavy_calculations/test_heavy_calculation.R

# Project: tinytest2JUnit
# 
# Author: ltuijnder
###############################################################################


#dir <- "~/git/tinytest2JUnit/inst/example_tests/heavy_calculations/"

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


expect_true(heavyCalc(), info = "heavy calculations")

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.