[Stacomir-commits] r517 - pkg/stacomir/tests
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Sep 27 12:09:52 CEST 2018
Author: legrand
Date: 2018-09-27 12:09:52 +0200 (Thu, 27 Sep 2018)
New Revision: 517
Modified:
pkg/stacomir/tests/testthat.R
Log:
add test_check and \donttest individual test_file
Modified: pkg/stacomir/tests/testthat.R
===================================================================
--- pkg/stacomir/tests/testthat.R 2018-09-27 09:56:30 UTC (rev 516)
+++ pkg/stacomir/tests/testthat.R 2018-09-27 10:09:52 UTC (rev 517)
@@ -1,8 +1,8 @@
#install.packages("testthat",dependencies=c("Depends", "Imports"))
#install.packages("relax")
require(testthat)
+require(stacomiR)
-
getUsername <- function(){
name <- Sys.info()[["user"]]
return(name)
@@ -31,6 +31,9 @@
test_dir("C:/Users/logrami/workspace/stacomir/pkg/stacomir/tests/testthat")
}
+test_check("stacomiR")
+
+\donttest{
test_file(stringr::str_c(getwd(),"/tests/testthat/test-00-stacomir.R"))
test_file(stringr::str_c(getwd(),"/tests/testthat/test-00-zrefclasses.R"))
test_file(stringr::str_c(getwd(),"/tests/testthat/test-01-report_mig_mult.R"))
@@ -51,3 +54,4 @@
test_file(stringr::str_c(getwd(),"/tests/testthat/test-11-report_mig_env.R"))
test_file(stringr::str_c(getwd(),"/tests/testthat/test-12-report_mig_char.R"))
test_file(stringr::str_c(getwd(),"/tests/testthat/test-13-report_species.R"))
+}
\ No newline at end of file
More information about the Stacomir-commits
mailing list