Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing skips for 'irace' if needed #267

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/testthat/test_OptimizerIrace.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ test_that("OptimizerBatchIrace works without passed constants set", {


test_that("paradox_to_irace without dependencies", {
skip_if_not_installed("irace")

# only ParamLgl
pps = ps(lgl = p_lgl())
expect_irace_parameters(parameters = paradox_to_irace(pps, 4), names = "lgl", types = "c",
Expand Down Expand Up @@ -196,6 +198,8 @@ test_that("paradox_to_irace without dependencies", {
})

test_that("paradox_to_irace with dependencies", {
skip_if_not_installed("irace")

# one dependency
pps = ps(
a = p_lgl(),
Expand Down Expand Up @@ -246,6 +250,8 @@ test_that("paradox_to_irace with dependencies", {
})

test_that("paradox_to_irace works with parameters with multiple dependencies", {
skip_if_not_installed("irace")

pps = ps(
a = p_lgl(),
b = p_lgl(),
Expand Down
Loading