tests/testthat/test-getSummary.R

context("Test getSummary() for correct loading")

test_that("Example file is loaded correctly", {
  # Define the example file with known structure
  x <- system.file("extdata/ATTG_R1_fastqc.zip", package = "ngsReports")
  df <- getSummary(x)
  expect_equal(names(df), c("Status", "Category", "Filename"))
  expect_equal(nrow(df), 12)
})

closeAllConnections()

Try the ngsReports package in your browser

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

ngsReports documentation built on Nov. 23, 2020, 2:01 a.m.