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

Preparing comprehensive unit and integration tests #51

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

reiniervlinschoten
Copy link
Collaborator

@reiniervlinschoten reiniervlinschoten commented Jul 27, 2024

In this pull request I was working on developing comprehensive unit and integration tests.
For the following tests I have updated the tests:

  • getStudyData
  • getStudyDataPoints (only the call with the default parametrization)
  • getStudyDataBulk, getStudyDataPointsBulk
  • getField, getFieldsPages, getFields
  • getParticipant, getParticipantsPages, getParticipants

These functions need updated tests. These test_that files are also marked with TODO:

  • getStudyDataPoints (with different parameters)
  • getForm, getForms, getFormsPages
  • getRepeatingData, getRepeatingDatasPages, getRepeatingDataForm, getRepeatingDataFormsPages, getRepeatingDataForms
  • getStudyDataPoint, getStudyDataPointsPages, getStudyDataPoints
  • getStudy, getStudiesPages, getStudies
  • getSurvey, getSurveysPages, getSurveys
  • getVisit, getVisitsPages, getVisits

The following need new unit tests as they are important in getStudyData:

  • adjustTypes
  • adjustCheckboxFields
  • generateFieldMetadata
  • cols_to_map
  • transformOptionGroupsInternal

The tests are currently being ran on PythonWrapperTest - Study, which I also use to test the PythonWrapper. Access to the study can be granted by me or @martijnkersloot. No data in this study should be changed or tests will fail. If tests have to write to a database, they can use PythonWrapperTest - Client (Write).

Base automatically changed from v2.1.0 to master August 2, 2024 11:56
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.

1 participant