tests/testthat/test_listspecies_output.R

context("expect_output")

test_that("Distinct species", {
  species <- listBgeeSpecies()
	expect_that( species, is_a("data.frame") )
  expect_that( ncol(species), equals(8) )
  expect_message(message("Query to Bgee webservice successful!"))
  expect_true( all(colnames(species) %in% c("ID", "GENUS",
                                            "SPECIES_NAME", "COMMON_NAME",
                                            "AFFYMETRIX", "EST",
                                            "IN_SITU", "RNA_SEQ")))
})

Try the BgeeDB package in your browser

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

BgeeDB documentation built on Nov. 8, 2020, 8:21 p.m.