[Stacomir-commits] r515 - pkg/stacomir/tests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Sep 27 11:23:43 CEST 2018


Author: legrand
Date: 2018-09-27 11:23:43 +0200 (Thu, 27 Sep 2018)
New Revision: 515

Modified:
   pkg/stacomir/tests/testthat.R
Log:
add skip_on_cran() in getUser()

Modified: pkg/stacomir/tests/testthat.R
===================================================================
--- pkg/stacomir/tests/testthat.R	2018-09-26 11:58:04 UTC (rev 514)
+++ pkg/stacomir/tests/testthat.R	2018-09-27 09:23:43 UTC (rev 515)
@@ -22,13 +22,13 @@
 
 if(getUsername() == 'cedric.briand')
 {
+  skip_on_cran()	
   test_dir("C:/workspace/stacomir/pkg/stacomir/tests/testthat")
-} else if(getUsername() == 'marion.legrand')
+}
+if(getUsername() == 'marion.legrand')
 {
+  skip_on_cran()
   test_dir("C:/Users/logrami/workspace/stacomir/pkg/stacomir/tests/testthat")
-} else
-{
-	test_dir("./tests/testthat")
 }
 
 test_file(stringr::str_c(getwd(),"/tests/testthat/test-00-stacomir.R"))



More information about the Stacomir-commits mailing list