Move more test data to test scope#283
Merged
pbchase merged 1 commit intoctsit:developfrom Sep 29, 2025
Merged
Conversation
Reconstruct make_test_data.R. Convert rda to rds as we move them to test scope. Delete 3 more man pages.
There was a problem hiding this comment.
Pull Request Overview
This PR refactors test data management by moving test datasets from R package data (.rda files) to test-scoped RDS files. The changes improve test isolation by making test data local to the test suite rather than part of the package's exported data objects.
Key changes:
- Convert
.rdatest data files to.rdsformat and move to test scope - Update data loading from
load()toreadRDS()calls in test files - Remove exported data documentation from the package
Reviewed Changes
Copilot reviewed 7 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
tests/testthat/test-redcap_projects.R |
Updates test data loading to use readRDS() instead of load() |
tests/testthat/redcap_projects/make_test_data.R |
Refactors test data generation script to use RDS format and test paths |
tests/testthat/redcap_entity_project_ownership/make_test_data.R |
Updates dependency loading to use RDS format |
man/projects_table_fragment.Rd |
Removes documentation for test data no longer exported |
man/one_deleted_project_record.Rd |
Removes documentation for test data no longer exported |
man/invoice_line_item_test_data.Rd |
Removes documentation for test data no longer exported |
R/data.R |
Removes roxygen documentation for test datasets no longer part of package data |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reconstruct make_test_data.R.
Convert rda to rds as we move them to test scope.
Delete 3 more man pages.