tests/testthat/test-cmd_print.R

test_that("cmd_print works", {
  
    
   out <- capture.output(
       cmd_print(c("fastqc -d ./fastqc_temp -o ${workdir}",
                   "/fastqFileQC/${sample_name} -f fastq")
                 )
   )
   testthat::expect_length(out,4)
   testthat::expect_equal(out[[1]],"fastqc")
   testthat::expect_equal(trimws(out[[2]]),"-d .../fastqc_temp")
})
RajLabMSSM/echoconda documentation built on June 6, 2024, 10:38 a.m.