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

Make tests self-contained #347

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Make tests self-contained #347

merged 1 commit into from
Feb 26, 2024

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
8 checks passed
@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.

3 participants