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

Enable parallel tests #278

Merged
merged 4 commits into from Nov 23, 2020
Merged

Enable parallel tests #278

merged 4 commits into from Nov 23, 2020

Conversation

pat-s
Copy link
Member

@pat-s pat-s commented Nov 2, 2020

and require testthat v3.0

@pat-s pat-s requested a review from be-marc November 2, 2020 07:33
@@ -6,15 +6,15 @@ expect_tuner = function(tuner) {
public = c("optimize", "param_set"),
private = ".optimize"
)
expect_is(tuner$param_set, "ParamSet")
expect_s3_class(tuner$param_set, "ParamSet")
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we leave it as it is? Because it is not really an S3 class - only technically.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old form is deprecated and will error at some point.

expect_class might also work.

@pat-s
Copy link
Member Author

pat-s commented Nov 21, 2020

@be-marc @jakob-r ?

expect_function(tuner$optimize, args = "inst")
}

expect_terminator = function(term) {
expect_r6(term, "Terminator",
public = c("is_terminated", "param_set")
)
expect_is(term$param_set, "ParamSet")
expect_s3_class(term$param_set, "ParamSet")
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

@jakob-r jakob-r merged commit ace01a5 into master Nov 23, 2020
@jakob-r jakob-r deleted the parallel-tests branch November 23, 2020 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants