Skip to content

Commit

Permalink
[ci] [R-package] ensure that MSVC jobs fail when tests fail (fixes #5439
Browse files Browse the repository at this point in the history
) (#5448)
  • Loading branch information
jameslamb committed Oct 9, 2022
1 parent 6b396e8 commit 9289543
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R-package/tests/testthat/test_dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ test_that("lgb.Dataset: Dataset should be able to construct from matrix and retu
})

test_that("cpp errors should be raised as proper R errors", {
testthat::skip_if(
Sys.getenv("COMPILER", "") == "MSVC" && as.integer(R.Version()[["major"]]) < 4L
, message = "Skipping on R 3.x and Visual Studio"
)
data(agaricus.train, package = "lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(
Expand Down

0 comments on commit 9289543

Please sign in to comment.