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

Wave 1 - tm_a_gee shinytests #1127

Merged
merged 22 commits into from
Apr 25, 2024
Merged

Conversation

m7pr
Copy link
Contributor

@m7pr m7pr commented Apr 22, 2024

Part of #1108

We can move active_module_tws_output to be a method of teal:::TealAppDriver

@m7pr m7pr added the core label Apr 22, 2024
@m7pr m7pr mentioned this pull request Apr 22, 2024
42 tasks
@m7pr m7pr changed the title Wave 1 - tm_a_qee shinytests Wave 1 - tm_a_gee shinytests Apr 22, 2024
@m7pr m7pr marked this pull request as ready for review April 22, 2024 12:05
Copy link
Contributor

github-actions bot commented Apr 22, 2024

Unit Tests Summary

  1 files   35 suites   4s ⏱️
278 tests 150 ✅ 128 💤 0 ❌
410 runs  170 ✅ 240 💤 0 ❌

Results for commit 8beef7f.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Apr 22, 2024

Unit Test Performance Difference

Test Suite $Status$ Time on main $±Time$ $±Tests$ $±Skipped$ $±Failures$ $±Errors$
shinytest2-tm_a_gee 👶 $+0.22$ $+18$ $+18$ $0$ $0$
Additional test case details
Test Suite $Status$ Time on main $±Time$ Test Case
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Change_in_arm_var_changes_the_table_and_does_not_throw_validation_errors.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Deselection_of_arm_var_throws_validation_error.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Deselection_of_conf_level_throws_validation_error.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Deselection_of_cor_struct_throws_validation_error.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Deselection_of_cov_var_throws_validation_error.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Deselection_of_id_var_throws_validation_error.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Deselection_of_paramcd_throws_validation_error.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Deselection_of_visit_var_throws_validation_error.
shinytest2-tm_a_gee 👶 $+0.02$ e2e_tm_a_gee_Module_initializes_in_teal_without_errors_and_produces_table_output.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Selection_of_conf_level_changes_the_table_and_does_not_throw_validation_errors.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Selection_of_conf_level_out_of_0_1_range_throws_validation_error.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Selection_of_cor_struct_changes_the_table_and_does_not_throw_validation_errors.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Selection_of_cov_var_changes_the_table_and_does_not_throw_validation_errors.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Selection_of_id_var_changes_the_table_and_does_not_throw_validation_errors.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Selection_of_output_table_changes_the_table_and_doesn_t_throw_validation_error.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Selection_of_paramcd_changes_the_table_and_does_not_throw_validation_errors.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Selection_of_visit_var_changes_the_table_and_does_not_throw_validation_errors.
shinytest2-tm_a_gee 👶 $+0.01$ e2e_tm_a_gee_Starts_with_specified_label_id_var_arm_var_visit_var_paramcd_cov_var_conf_level_and_conf_struct.

Results for commit c7b7432

♻️ This comment has been updated with latest results.

Copy link
Contributor

@gogonzo gogonzo left a comment

Choose a reason for hiding this comment

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

Below, list of encoding inputs and what would be nice to test. Some of the actions on the server side are missing (see those without check mark)

aval_var:
  - default- selecting changes table
  - "An analysis variable is required"
paramcd:
  - default- selecting changes table- "An endpoint is required"visit_var:
  - default- selecting changes table- "A visit variable is required"cov_var:
  - default- selecting changes table- deselectingsplit_covariates:
  - default
  - selecting changes table
  - updated when cov_var is changed
arm_var:
  - default- selecting changes table- "A treatment variable is required"id_var:
  - default- selecting changes table- "A Subject identifier is required"cor_struct:
  - default
  - selecting changes table
  - "Please choose a correlation structure"
conf_level:
  - default- selecting changes table- "Please choose a confidence level."
  - "Confidence level must be between 0 and 1"
output_type:
  - default  ✅ (but choices instead)
  - selecting changes table

@gogonzo gogonzo linked an issue Apr 23, 2024 that may be closed by this pull request
42 tasks
@gogonzo gogonzo self-assigned this Apr 23, 2024
Co-authored-by: kartikeya kirar <[email protected]>
Signed-off-by: Marcin <[email protected]>
@m7pr
Copy link
Contributor Author

m7pr commented Apr 23, 2024

Hey @gogonzo thanks for the review and the analysis - aval_var is fixed and there is no way to check selection and validate the error on empty selection

aval_var:
  - default- selecting changes table
  - "An analysis variable is required"

OK 👍

@m7pr
Copy link
Contributor Author

m7pr commented Apr 23, 2024

Hey @gogonzo I added few tests as you recommend and replied to your great list in a print-screen below

Screenshot 2024-04-23 152311

@gogonzo
Copy link
Contributor

gogonzo commented Apr 23, 2024

Well covered 👍 Let's wait for pws/tws methods in teal

Copy link
Contributor

@gogonzo gogonzo left a comment

Choose a reason for hiding this comment

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

👍

m7pr added a commit to insightsengineering/teal that referenced this pull request Apr 24, 2024
Motivated by the need to check current plot and table contents

- insightsengineering/teal.modules.clinical#1125
- insightsengineering/teal.modules.clinical#1127

---------

Signed-off-by: Marcin <[email protected]>
Co-authored-by: kartikeya kirar <[email protected]>
@m7pr m7pr enabled auto-merge (squash) April 25, 2024 13:50
@m7pr m7pr merged commit 79a849c into main Apr 25, 2024
22 checks passed
@m7pr m7pr deleted the 1108_shinytest2_tm_a_gee@shinytest2@main branch April 25, 2024 13:58
@vedhav vedhav restored the 1108_shinytest2_tm_a_gee@shinytest2@main branch April 26, 2024 06:49
vedhav added a commit that referenced this pull request Apr 26, 2024
@vedhav vedhav deleted the 1108_shinytest2_tm_a_gee@shinytest2@main branch April 26, 2024 07:16
vedhav added a commit that referenced this pull request Apr 26, 2024
This reverts commit 79a849c as we just
need this in our feature branch `shinytest2@main` for now.
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.

Implement shinytest2 for tmc
4 participants