testthat - Error: No tests found for []

Hello,

Trying to add tests for my package. I Used usethis::use_testthat() to add the testthat package folders. Set on the testthat folder the following test:

test-obj_class.R

context("Test extract_grid function")

test_that(desc = "Test object class",
          {
            expect_equal(TRUE, TRUE)
          })

and testthat.R file as:

library(testthat)
library(UKgrid)
test_check("UKgrid")

When running the last one I am getting the following error:

Error: No tests found for UKgrid

Did I miss something? Any suggestions?

Thanks,
Rami

Solution - was able to run it with devtools::test()

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.