Skip to content

Commit

Permalink
adding logic to skip heavy tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagomaie committed Dec 12, 2023
1 parent 09a0431 commit 330f503
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/spelling.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
if(requireNamespace('spelling', quietly = TRUE))
spelling::spell_check_test(vignettes = TRUE, error = FALSE,
skip_on_cran = TRUE)
spelling::spell_check_test(
vignettes = TRUE, error = FALSE,
skip_on_cran = TRUE
)
1 change: 1 addition & 0 deletions tests/testthat/test1-CimpleG-decisiontree.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

test_that("signatures are generated w/ decision_tree", {
skip_on_ci()
set.seed(42)
res <- suppressWarnings(CimpleG(
train_data = train_data[,1:100],
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test1-CimpleG-nnet.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

test_that("signatures are generated w/ nnet", {
skip_on_ci()
set.seed(42)
res <- suppressWarnings(CimpleG(
train_data = train_data[,1:100],
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test1-CimpleG-rf.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

test_that("signatures are generated w/ rand_forest", {
skip_on_ci()
set.seed(42)
res <- suppressWarnings(suppressMessages(CimpleG(
train_data = train_data[,1:100],
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test3-CimpleG-xgboost.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

test_that("signatures are generated w/ xgboost", {
skip_on_ci()
set.seed(42)
res <- suppressWarnings(suppressMessages(CimpleG(
train_data = train_data[,1:100],
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test4-CimpleG-bruteforce.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

test_that("signatures are generated w/ brute_force", {
skip_on_ci()
# skip("Skipping to speed up testing, brute_force takes too long.")
set.seed(42)
sigs <- suppressWarnings(CimpleG(
Expand Down

0 comments on commit 330f503

Please sign in to comment.