Skip to content

Commit

Permalink
Skip test if slendr env is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Nov 20, 2024
1 parent e6407cd commit d25ab75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-sampling.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
msg <- "Cannot schedule sampling"

skip_if(!is_slendr_env_present())

init_env(quiet = TRUE)

test_that("sampling from a population which is not present is prevented (forward)", {
Expand Down

0 comments on commit d25ab75

Please sign in to comment.