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

Remove remaining scda usage, update to testthat v3.0 #732

Merged
merged 13 commits into from
Mar 2, 2023

Conversation

edelarua
Copy link
Contributor

@edelarua edelarua commented Mar 1, 2023

Closes #709

@edelarua edelarua added the sme label Mar 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2023

Unit Tests Summary

    1 files    33 suites   3s ⏱️
149 tests 149 ✔️     0 💤 0
280 runs  168 ✔️ 112 💤 0

Results for commit c85816d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2023

Unit Test Performance Difference

Additional test case details
Test Suite $Status$ Time on main $±Time$ Test Case
tm_t_shift_by_grade 💀 $0.43$ $-0.43$ template_shift_by_grade_is_keeping_the_same_number_of_missing_data_as_Missing_at_the_end_of_preprocessing_steps
tm_t_shift_by_grade 👶 $+0.20$ template_shift_by_grade_keeps_the_same_number_of_missing_data_Missing_after_preprocessing
tm_t_shift_by_grade 👶 $+0.02$ template_shift_by_grade_throws_an_error_when_worst_flag_var_is_not_one_of_WGRLOVFL_WGRLOFL_WGRHIVFL_WGRHIFL
tm_t_shift_by_grade 💀 $0.01$ $-0.01$ template_shift_by_grade_throws_an_error_when_worst_flag_var_is_not_one_of_WGRLOVFL_WGRLOFL_WGRHIVFL_WGRHIFL_
tm_t_summary 👶 $+0.02$ template_summary_generates_correct_expressions_for_multiple_grouping_variables_and_all_patients
tm_t_summary 💀 $0.01$ $-0.01$ template_summary_generates_correct_expressions_for_multiple_grouping_variables_and_all_patientts

Results for commit 4053160

♻️ This comment has been updated with latest results.

DESCRIPTION Show resolved Hide resolved
DESCRIPTION Show resolved Hide resolved
DESCRIPTION Show resolved Hide resolved
Copy link
Contributor

@shajoezhu shajoezhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot @edelarua , looks really good. I will take another closer look later.

@Melkiades Melkiades self-requested a review March 2, 2023 08:42
Copy link
Contributor

@nikolas-burkoff nikolas-burkoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments from me

DESCRIPTION Show resolved Hide resolved
R/teal.modules.clinical.R Outdated Show resolved Hide resolved
tests/testthat.R Outdated Show resolved Hide resolved
Copy link
Contributor

@Melkiades Melkiades left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Emily for all the work! I am only a bit unsure if changing everything into e3 is in scope for this issue and PR. Also, it seems to me that a lot of the expected is built here around alternative ways to produce the same result which is valuable information. Changing it to e3 makes it also difficult to read the scda-related changes

Copy link
Contributor

@Melkiades Melkiades left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After our discussion, I reckon that the snapshots and the expected evaluations are both text-based and, therefore, using the first in place of the second makes sense. The code is now much cleaner and the errors/changes will be more readable in the future. It is still a large PR (due to the shift of info from tests to snaps) and it should have been done in a separate PR. Nonetheless, the modifications related to scda were minimal and, therefore the vbump problem is minor. Surely, we should (myself too) try to remember that it is better to do one issue per PR so that vbump can be consulted better. Overall, GREAT job Emily!

@edelarua
Copy link
Contributor Author

edelarua commented Mar 2, 2023

@shajoezhu are we good to merge this or do you need time to look it over?

Copy link
Contributor

@shajoezhu shajoezhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! Thanks so much! @edelarua

@edelarua edelarua merged commit 203b198 into main Mar 2, 2023
@edelarua edelarua deleted the 709_remove_scda_from_tests@main branch March 2, 2023 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update unittests that are using scda data
5 participants