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

125 tws tests srv@main #131

Merged
merged 11 commits into from
Dec 14, 2022
Merged

125 tws tests srv@main #131

merged 11 commits into from
Dec 14, 2022

Conversation

BLAZEWIM
Copy link
Contributor

Fixes #125

Server tests for table with settings, similiar to #113

@BLAZEWIM BLAZEWIM added the core label Dec 12, 2022
@mhallal1 mhallal1 self-assigned this Dec 12, 2022
BLAZEWIM and others added 3 commits December 12, 2022 15:58
Co-authored-by: Mahmoud Hallal <[email protected]>
Signed-off-by: Marek Blazewicz <[email protected]>
Co-authored-by: Mahmoud Hallal <[email protected]>
Signed-off-by: Marek Blazewicz <[email protected]>
Co-authored-by: Mahmoud Hallal <[email protected]>
Signed-off-by: Marek Blazewicz <[email protected]>
BLAZEWIM and others added 4 commits December 12, 2022 16:45
Co-authored-by: Mahmoud Hallal <[email protected]>
Signed-off-by: Marek Blazewicz <[email protected]>
Co-authored-by: Mahmoud Hallal <[email protected]>
Signed-off-by: Marek Blazewicz <[email protected]>
Co-authored-by: Mahmoud Hallal <[email protected]>
Signed-off-by: Marek Blazewicz <[email protected]>
@BLAZEWIM BLAZEWIM mentioned this pull request Dec 13, 2022
@mhallal1 mhallal1 marked this pull request as ready for review December 14, 2022 13:12
Copy link
Contributor

@mhallal1 mhallal1 left a comment

Choose a reason for hiding this comment

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

Cases not covered shall be handled when testing the UI.
LGTM.

@github-actions
Copy link
Contributor

Unit Tests Summary

    1 files    10 suites   13s ⏱️
  95 tests   93 ✔️ 2 💤 0
199 runs  197 ✔️ 2 💤 0

Results for commit 3f490be.

@BLAZEWIM BLAZEWIM merged commit c52dc5c into main Dec 14, 2022
@BLAZEWIM BLAZEWIM deleted the 125_tws_tests_srv@main branch December 14, 2022 13:24
BLAZEWIM added a commit that referenced this pull request Jan 12, 2023
Fixes
#[132](#132)

Presented are two options (main file:
tests/testthat/test-table_with_settings_ui.R) for testing table with
settings using shinytest2, to discuss and decide on one of them (or a
mix):

1. Maximum option (`app_tws_maxi`), which is a almost exact copy of a
recoreded test, with tesing downloads a a lot of `app$set_inputs()`
usage. Cons: We test download in the other place
(#131). Pros: we
test the exact table content and look, not its existence.
2. Minimum option (`app_tws_mini`), where we test clicks and use minimum
number of `app$set_inputs()` required. We mainly check the values at
output (.json file).

In both options, decision whether we use '.png' snapshots is to be
decided based on how it goes in review on other machines (how stable it
is).

Signed-off-by: Marek Blazewicz <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Mahmoud Hallal <[email protected]>
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.

2 participants