Skip to content

Commit

Permalink
Updated phase transitions unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leifeld committed Oct 15, 2023
1 parent 0ff203f commit 013d40b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rDNA/rDNA/tests/testthat/test-phasetransitions.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
context("Testing phase transitions")

# Initialize DNA and sample database
suppressPackageStartupMessages(library("rDNA"))
dna_init()

# Create a function to set up the database for tests
setup_dna_database <- function() {
dna_init()
samp <- dna_sample()
dna_openDatabase(samp, coderId = 1, coderPassword = "sample")
return(samp)
Expand All @@ -18,6 +15,8 @@ cleanup_dna_database <- function(samp) {
}

test_that("dna_phaseTransitions produces expected output with default settings", {
testthat::skip_on_cran()
testthat::skip_on_ci()
samp <- setup_dna_database()
result <- dna_phaseTransitions()

Expand All @@ -31,6 +30,8 @@ test_that("dna_phaseTransitions produces expected output with default settings",
})

test_that("autoplot.dna_phaseTransitions produces expected plots", {
testthat::skip_on_cran()
testthat::skip_on_ci()
samp <- setup_dna_database()
phase_trans_obj <- dna_phaseTransitions()

Expand Down

0 comments on commit 013d40b

Please sign in to comment.