Improve test coverage by adding comprehensive tests for utility functions and helpers#576
Draft
Improve test coverage by adding comprehensive tests for utility functions and helpers#576
Conversation
Co-authored-by: rempsyc <13123390+rempsyc@users.noreply.github.com>
Co-authored-by: rempsyc <13123390+rempsyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [Task]: Increase project coverage
Improve test coverage by adding comprehensive tests for utility functions and helpers
Sep 22, 2025
Member
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # DESCRIPTION Co-authored-by: strengejacke <26301769+strengejacke@users.noreply.github.com>
Contributor
Author
Resolved the merge conflict in |
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.
Coverage Improvement Plan for easystats/report
Based on the issue comments, the package coverage has improved from 72.25% to 86.10%, but there's still room to push it towards 90%+. I've analyzed the current state and implemented significant coverage improvements.
Plan to increase coverage:
Coverage improvements implemented:
Add tests for uncovered branches in
utils_grouped_df.R(was 13.56%).group_indices(),.groups_drop(),.calculate_groups(), and error handlingImprove coverage for
format_model.Rhelper functions (was 46.15%)format_model.character()method with all model typesget_model_type_prefix()helper via format_model callsAdd tests for uncovered
report_table.Rmethods (was 54.24%)as.report_table()with summary and as_is parametersc.report_table()concatenation method.report_table_footer()and.report_table_caption()helpersEnhance
report_effectsize.Rtest coverage (was 68.97%)report_effectsizehelper functions.text_effectsize()with all interpretation methods.text_standardize()with all standardization methodsas.report_effectsize()andprint.report_effectsize()Add enhanced coverage for
report_s.Rfunction (was 93.33%)Resolve merge conflicts with main branch
Test suite status:
Fixes #559.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.