tests/testthat/test_problemPage.R

context("problemPage")
library(BiocPkgTools)

ppage = problemPage(includeOK = TRUE)
ppage2 = problemPage(includeOK = FALSE)

test_that("problempage is a datatable", {
    expect_is(ppage, 'datatables')
    expect_is(ppage, 'htmlwidget')
})

test_that("data is at least close to correct", {
  expect_gt(nrow(ppage$x$data), 0)
  expect_gte(nrow(ppage$x$data), nrow(ppage2$x$data))
})
Liubuntu/BiocPkgTools documentation built on July 8, 2019, 6:56 p.m.