-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Implement shinytest2 for tmc #1108
Closed
1 of 42 tasks
Labels
Comments
averissimo
added a commit
that referenced
this issue
Apr 19, 2024
# Pull Request Part of #1108 ## Changes description - Adds necessary functions for e2e tests on modules
This was referenced Apr 22, 2024
This was
linked to
pull requests
Apr 23, 2024
Template for the common test patterns we use. Common first test for all the modulesFor plot modules
For table modules
Check if the the module initializes with proper defaults
Check is a different selection works ✅For a plot module
For a table module
Check if no selection works ✅For a plot module
For a table module
Check if no selection shows validation error ❌For a plot module
For a table module
|
averissimo
added a commit
that referenced
this issue
Apr 25, 2024
# Pull Request Part of #1108 ### What is being tested - Default values that can be changed - Selecting `x` variable - Deselecting `x` variable should give error - Deselecting others does not throw error - Selecting same variables as `x` has a validation error --------- Signed-off-by: André Veríssimo <[email protected]> Co-authored-by: kartikeya kirar <[email protected]>
m7pr
added a commit
that referenced
this issue
Apr 25, 2024
Part of #1108 We can move `active_module_tws_output` to be a method of `teal:::TealAppDriver` --------- Signed-off-by: Marcin <[email protected]> Co-authored-by: kartikeya kirar <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Signed-off-by: Vedha Viyash <[email protected]> Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
vedhav
added a commit
that referenced
this issue
May 7, 2024
vedhav
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Signed-off-by: Vedha Viyash <[email protected]> Co-authored-by: Marcin <[email protected]>
vedhav
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Signed-off-by: kartikeya kirar <[email protected]> Co-authored-by: André Veríssimo <[email protected]> Co-authored-by: Vedha Viyash <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
vedhav
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: vedhav <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Signed-off-by: Vedha Viyash <[email protected]> Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
kartikeyakirar
added a commit
that referenced
this issue
May 7, 2024
Part of #1108 --------- Co-authored-by: unknown <[email protected]>
vedhav
added a commit
that referenced
this issue
May 7, 2024
linksto #1108 --------- Signed-off-by: kartikeya kirar <[email protected]> Co-authored-by: vedhav <[email protected]> Co-authored-by: kartikeya kirar <[email protected]> Co-authored-by: Vedha Viyash <[email protected]>
vedhav
added a commit
that referenced
this issue
May 7, 2024
vedhav
added a commit
that referenced
this issue
May 7, 2024
# Pull Request Part of #1108 Module has very specific set of variables that don't allow for many choices Fields not 100% tested: - `cmdecod`: selected variable needs to be named CMDECOD due to limitation in module's logic - `cmtrt`: Could not manipulate data for this field to have any change on output. - It seems that it is only used when CMDECOD has long values --------- Co-authored-by: Vedha Viyash <[email protected]> Co-authored-by: vedhav <[email protected]>
vedhav
added a commit
that referenced
this issue
May 9, 2024
Part of #1108 --------- Signed-off-by: Vedha Viyash <[email protected]> Signed-off-by: kartikeya kirar <[email protected]> Co-authored-by: unknown <[email protected]>
vedhav
added a commit
that referenced
this issue
May 10, 2024
Closes #1108 A unified branch for all partial PRs that will solve #1108 Merge at the end. Place where we can unify PRs --------- Signed-off-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]> Signed-off-by: Vedha Viyash <[email protected]> Signed-off-by: kartikeya kirar <[email protected]> Co-authored-by: m7pr <[email protected]> Co-authored-by: André Veríssimo <[email protected]> Co-authored-by: Vedha Viyash <[email protected]> Co-authored-by: vedhav <[email protected]> Co-authored-by: kartikeya kirar <[email protected]> Co-authored-by: Dawid Kałędkowski <[email protected]> Co-authored-by: Dawid Kałędkowski <[email protected]> Co-authored-by: gogonzo <[email protected]> Co-authored-by: vedhav <[email protected]> Co-authored-by: kartikeyakirar <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a continuation of #503
Using the shinytest2 helper class that we built for
teal
, let extend the feature for tmg.We have 36 teal module functions in tmc
Note
app_driver_\<name of module\>
tests/testthat/helper-TealAppDriver.R
so we can call it as a function in the test case.Pre-requirements
TealAppDriver
- @averissimo AddsTealAppDriver
andskip_if_too_deep
for e2e testing #1124Modules
Wave 1
tm_a_gee
shinytests #1127tm_a_mmrm
shinytests #1131tm_g_barchart_simple
shinytest2 #1134tm_g_ci
shinytests #1125tm_g_forest_rsp
shinytests #1129Wave 2
tm_g_forest_tte
shinytest2 #1138tm_g_ipp
shinytests #1141tm_g_km
shinytests #1133tm_g_lineplot
shinytest2 #1137tm_g_pp_adverse_events
shinytests #1150Wave 3
tm_g_pp_patient_timeline
shinytest2 #1146tm_g_pp_therapy
shinytest2 #1148tm_g_pp_vitals
shinytest2 #1143tm_t_abnormality
shinytest2 #1144tm_t_abnormality_by_worst_grade
shinytest2 #1145Wave 4
tm_t_ancova
shinytests #1154tm_t_binary_outcome
shinytests #1155tm_t_coxreg
shinytests #1156tm_t_events
shinytests #1157tm_t_events_by_grade
shinytests #1158Wave 5
tm_t_events_patyear
shinytests #1159tm_t_events_summary
shinytests #1160tm_t_exposure
shinytests #1161tm_t_logistic
shinytests #1162tm_t_mult_events
shinytests #1163Wave 6
tm_t_pp_basic_info
shinytests #1164tm_t_pp_laboratory
shinytests #1165tm_t_pp_medical_history
shinytests #1166tm_t_pp_prior_medication
shinytests #1167tm_t_shift_by_arm
shinytests #1168Wave 7
tm_t_shift_by_arm_by_worst
shinytests #1169tm_t_shift_by_grade
shinytests #1170tm_t_smq
shinytests #1171tm_t_summary
shinytests #1172tm_t_summary_by
shinytests #1173tm_t_tte
shinytests #1174Checklist of things to check on the feature branch
get_active_module_tws_output
andget_active_module_pws_output
withget_active_module_table_output
andget_active_module_plot_output
respectively after teal #1210 is merged. Also look forrvest::html_table()
and useget_active_module_table_output
for DT tables.skip_if_too_deep(5)
andapp_driver$stop()
.
uses variables likearm_var
instead ofarm_var-variable
orARM variable
teal.data::
for teal_data(), datanames() and join_keys where ever its missing.The text was updated successfully, but these errors were encountered: