Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kertoo committed Jul 16, 2024
1 parent 6a559c0 commit 1714f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inst/tinytest/test_developer_only.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# These tests are only supposed to be run on developer's machine and
# package GitHub page not on CRAN (they take too long)

#if (isTRUE(tolower(Sys.getenv("TEST_SINGLERCAPTURE_MULTICORE_DEVELOPER")) == "true")) {
if (TRUE) {
if (isTRUE(tolower(Sys.getenv("TEST_SINGLERCAPTURE_MULTICORE_DEVELOPER")) == "true")) {
#if (TRUE) {
set.seed(123)
expect_silent(
xx <- estimatePopsize(
Expand Down
3 changes: 2 additions & 1 deletion tests/tinytest.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

if ( requireNamespace("tinytest", quietly=TRUE) ){
tinytest::test_package("singleRcapture")
xx <- isTRUE(tolower(Sys.getenv("TEST_SINGLERCAPTURE_MULTICORE_DEVELOPER")) == "true")
tinytest::test_package("singleRcapture", ncpu = if (xx) 2 else NULL)
}

0 comments on commit 1714f88

Please sign in to comment.