Skip to content

Commit

Permalink
skip failing tests if using < 2.26
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Jan 21, 2021
1 parent 456a0a1 commit e6ae1ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-profiling.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if (not_on_cran()) {

test_that("profiling works if profiling data is present", {
skip_on_cran()
skip_if(cmdstan_version() < "2.26.0")
mod <- testing_model("logistic_profiling")
utils::capture.output(
fit <- mod$sample(data = testing_data("logistic"), refresh = 0)
Expand Down Expand Up @@ -36,6 +37,7 @@ test_that("profiling errors if no profiling files are present", {

test_that("saving profile csv output works", {
skip_on_cran()
skip_if(cmdstan_version() < "2.26.0")
mod <- testing_model("logistic_profiling")
utils::capture.output(
fit <- mod$sample(data = testing_data("logistic"), refresh = 0)
Expand Down

0 comments on commit e6ae1ad

Please sign in to comment.