Skip to content

Make tests self-contained#347

Merged
LittleBeannie merged 1 commit intomainfrom
self-contained-tests
Feb 26, 2024
Merged

Make tests self-contained#347
LittleBeannie merged 1 commit intomainfrom
self-contained-tests

Conversation

@nanxstats
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

3 participants