Skip to content

Conversation

@nanxstats
Copy link
Collaborator

As recommended by R Packages, this PR makes all existing tests self-contained by creating helper functions to wrap the top-level logic that used to have awkward "test file scope".

Now all test files only contain individual test_that() blocks. There are a few exceptions where a few test files containing one/two-liner batch source() calls or running computationally expensive helper functions at the top.

Copy link
Collaborator

@LittleBeannie LittleBeannie left a comment

Choose a reason for hiding this comment

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

Thanks, @nanxstats !

@LittleBeannie LittleBeannie merged commit bbd2955 into main Feb 26, 2024
@LittleBeannie LittleBeannie deleted the self-contained-tests branch February 26, 2024 16:22
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.

4 participants