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

Various test results when there are many tests #380

Open
jhen1115 opened this issue Apr 2, 2024 · 0 comments
Open

Various test results when there are many tests #380

jhen1115 opened this issue Apr 2, 2024 · 0 comments

Comments

@jhen1115
Copy link

jhen1115 commented Apr 2, 2024

When there are many tests, for example, the following test-001.R is copied to create test-002.R through to test-199.R.

app <- shinytest2::AppDriver$new(
  variant = shinytest2::platform_variant(),
  load_timeout = 30 * 1000
)

testthat::test_that("Initial Shiny values are consistent", {
  testthat::expect_identical(app$get_value(input = "bins"), 30L)
})

testthat::test_that("Screenshot", {
  app$expect_screenshot()
})

app$stop()

The results vary even though the tests from 001 to 199 are the same. The results are as follows:

> shinytest2::test_app(check_setup = FALSE)
✔ | F W  S  OK | Context
✔ |          2 | 001 [4.5s]                                                                                                 
✔ |          2 | 002 [2.2s]                                                                                                 
✔ |          2 | 003 [2.1s]                                                                                                 
✔ |          2 | 004 [2.1s]                                                                                                 
✔ |          2 | 005 [2.1s]                                                                                                 
✔ |          2 | 006 [2.1s]                                                                                                 
✔ |          2 | 007 [2.0s]                                                                                                 
✔ |          2 | 008 [2.1s]                                                                                                 
✔ |          2 | 009 [2.1s]                                                                                                 
✔ |          2 | 010 [2.1s]                                                                                                 
✔ |          2 | 011 [2.2s]                                                                                                 
✔ |          2 | 012 [2.1s]                                                                                                 
✔ |          2 | 013 [2.2s]                                                                                                 
✔ |          2 | 014 [2.2s]                                                                                                 
✔ |          2 | 015 [2.1s]                                                                                                 
✔ |          2 | 016 [2.1s]                                                                                                 
✔ |          2 | 017 [2.3s]                                                                                                 
✔ |          2 | 018 [2.1s]                                                                                                 
✔ |          2 | 019 [2.1s]                                                                                                 
✔ |          2 | 020 [2.1s]                                                                                                 
✔ |          2 | 021 [2.2s]                                                                                                 
✔ |          2 | 022 [2.1s]                                                                                                 
✔ |          2 | 023 [2.1s]                                                                                                 
✔ |          2 | 024 [2.1s]                                                                                                 
✔ |          2 | 025 [2.0s]                                                                                                 
✔ |          2 | 026 [2.1s]                                                                                                 
✔ |          2 | 027 [2.1s]                                                                                                 
✔ |          2 | 028 [2.1s]                                                                                                 
✔ |          2 | 029 [2.8s]                                                                                                 
✔ |          2 | 030 [2.2s]                                                                                                 
✔ |          2 | 031 [2.1s]                                                                                                 
✔ |          2 | 032 [2.2s]                                                                                                 
✔ |          2 | 033 [2.1s]                                                                                                 
✔ |          2 | 034 [2.1s]                                                                                                 
✔ |          2 | 035 [2.2s]                                                                                                 
✔ |          2 | 036 [2.1s]                                                                                                 
✔ |          2 | 037 [2.1s]                                                                                                 
✔ |          2 | 038 [2.1s]                                                                                                 
✔ |          2 | 039 [2.2s]                                                                                                 
✔ |          2 | 040 [2.3s]                                                                                                 
✔ |          2 | 041 [2.2s]                                                                                                 
✔ |          2 | 042 [2.1s]                                                                                                 
✔ |          2 | 043 [2.2s]                                                                                                 
✔ |          2 | 044 [2.5s]                                                                                                 
✔ |          2 | 045 [2.6s]                                                                                                 
✔ |          2 | 046 [2.1s]                                                                                                 
✔ |          2 | 047 [2.1s]                                                                                                 
✔ |          2 | 048 [2.8s]                                                                                                 
✔ |          2 | 049 [2.8s]                                                                                                 
✔ |          2 | 050 [3.1s]                                                                                                 
✔ |          2 | 051 [3.7s]                                                                                                 
✖ | 1        1 | 052 [8.8s]                                                                                                 
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error (8;line = 13:col = 3;file:///cloud/project/multipletest/tests/testthat/test-052.R�test-052.R:13:3): Screenshot
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to copy '/tmp/RtmpVf2ZgO/st2-a0b12aa76842.png' to '/tmp/RtmpVf2ZgO/st2-a0b1da40167/001.png': no such file or directory
Backtrace:
    ▆
 1. └─app$expect_screenshot() at test-052.R:13:3
 2.   └─shinytest2:::app_expect_screenshot_and_variant(...)
 3.     └─shinytest2:::app_expect_screenshot(self, private, ...)
 4.       └─self$get_screenshot(...)
 5.         └─shinytest2:::app_get_screenshot(...)
 6.           └─fs::file_copy(path, file)
───────────────────────────────────────────────────────────────────────────���────────────────────────────────────────────────
⠋ |          1 | 053                                                                                                        [2024-04-02 13:45:11] [error] handle_read_frame error: websocketpp.transport:7 (End of File)
✖ | 1        1 | 053 [14.8s]                                                                                                
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error (test-053.R:13:3): Screenshot
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to copy '/tmp/RtmpVf2ZgO/st2-a0b1737452f3.png' to '/tmp/RtmpVf2ZgO/st2-a0b170824556/001.png': no such file or directory
Backtrace:
    ▆
 1. └─app$expect_screenshot() at 8;line = 13:col = 3;file:///cloud/project/multipletest/tests/testthat/test-053.R�test-053.R:13:3
 2.   └─shinytest2:::app_expect_screenshot_and_variant(...)
 3.     └─shinytest2:::app_expect_screenshot(self, private, ...)
 4.       └─self$get_screenshot(...)
 5.         └─shinytest2:::app_get_screenshot(...)
 6.           └─fs::file_copy(path, file)
───────────────────────────��────────────────────────────────────────────────────────────────────────────────────────────────
✔ |          2 | 054 [3.6s]                                                                                                 
✔ |          2 | 055 [2.1s]                                                                                                 
✔ |          2 | 056 [2.1s]                                                                                                 
✔ |          2 | 057 [2.2s]                                                                                                 
✔ |          2 | 058 [2.1s]                                                                                                 
✔ |          2 | 059 [2.3s]                                                                                                 
✔ |          2 | 060 [2.6s]                                                                                                 
✔ |          2 | 061 [2.1s]                                                                                                 
✔ |          2 | 062 [2.2s]                                                                                                 
✔ |          2 | 063 [2.1s]                                                                                                 
✔ |          2 | 064 [2.1s]                                                                                                 
✔ |          2 | 065 [2.1s]                                                                                                 
✔ |          2 | 066 [2.0s]                                                                                                 
✔ |          2 | 067 [2.1s]                                                                                                 
✔ |          2 | 068 [2.1s]                                                                                                 
✔ |          2 | 069 [2.1s]                                                                                                 
✔ |          2 | 070 [2.1s]                                                                                                 
✔ |          2 | 071 [2.1s]                                                                                                 
✔ |          2 | 072 [2.3s]                                                                                                 
✔ |          2 | 073 [2.7s]                                                                                                 
✔ |          2 | 074 [2.1s]                                                                                                 
✔ |          2 | 075 [2.5s]                                                                                                 
✔ |          2 | 076 [2.1s]                                                                                                 
✔ |          2 | 077 [2.1s]                                                                                                 
✔ |          2 | 078 [2.1s]                                                                                                 
✔ |          2 | 079 [2.3s]                                                                                                 
✔ |          2 | 080 [2.0s]                                                                                                 
✔ |          2 | 081 [2.2s]                                                                                                 
✔ |          2 | 082 [2.1s]                                                                                                 
✔ |          2 | 083 [2.1s]                                                                                                 
✔ |          2 | 084 [2.2s]                                                                                                 
✔ |          2 | 085 [2.2s]                                                                                                 
✔ |          2 | 086 [2.1s]                                                                                                 
✔ |          2 | 087 [2.2s]                                                                                                 
✔ |          2 | 088 [2.1s]                                                                                                 
✔ |          2 | 089 [2.0s]                                                                                                 
✔ |          2 | 090 [2.2s]                                                                                                 
✔ |          2 | 091 [2.2s]                                                                                                 
✔ |          2 | 092 [2.1s]                                                                                                 
✔ |          2 | 093 [2.2s]                                                                                                 
✔ |          2 | 094 [2.1s]                                                                                                 
✔ |          2 | 095 [2.1s]                                                                                                 
✔ |          2 | 096 [2.2s]                                                                                                 
✔ |          2 | 097 [2.7s]                                                                                                 
✔ |          2 | 098 [2.4s]                                                                                                 
✔ |          2 | 099 [2.3s]                                                                                                 
✔ |          2 | 100 [2.9s]                                                                                                 
✔ |          2 | 101 [2.8s]                                                                                                 
✔ |          2 | 102 [3.2s]                                                                                                 
✔ |          2 | 103 [3.1s]                                                                                                 
✔ |          2 | 104 [3.7s]                                                                                                 
⠙ | 1        1 | 105                                                                                                        [2024-04-02 13:47:25] [error] handle_read_frame error: websocketpp.transport:7 (End of File)
✖ | 1        1 | 105 [18.1s]
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error (test-105.R:13:3): Screenshot
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to copy '/tmp/RtmpVf2ZgO/st2-a0b150583f2e.png' to '/tmp/RtmpVf2ZgO/st2-a0b14cdda571/001.png': no such file or directory
Backtrace:
    ▆
 1. └─app$expect_screenshot() at test-105.R:13:3
 2.   └─shinytest2:::app_expect_screenshot_and_variant(...)
 3.     └─shinytest2:::app_expect_screenshot(self, private, ...)
 4.       └─self$get_screenshot(...)
 5.         └─shinytest2:::app_get_screenshot(...)
 6.           └─fs::file_copy(path, file)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ |          2 | 106 [4.1s]                                                                                                 
✔ |          2 | 107 [2.1s]                                                                                                 
✔ |          2 | 108 [2.7s]                                                                                                 
✔ |          2 | 109 [2.2s]                                                                                                 
[32m✔ |          2 | 110 [2.0s]                                                                                             
✔ |          2 | 111 [2.1s]                                                                                                 
✔ |          2 | 112 [2.2s]                                                                                                 
✔ |          2 | 113 [2.2s]                                                                                                 
✔ |          2 | 114 [2.2s]                                                                                                 
✔ |          2 | 115 [2.2s]                                                                                                 
✔ |          2 | 116 [2.3s]                                                                                                 
✔ |          2 | 117 [3.1s]                                                                                                 
✔ |          2 | 118 [2.5s]                                                                                                 
✔ |          2 | 119 [2.2s]                                                                                                 
✔ |          2 | 120 [2.5s]                                                                                                 
✔ |          2 | 121 [2.2s]                                                                                                 
✔ |          2 | 122 [2.1s]                                                                                                 
✔ |          2 | 123 [2.3s]                                                                                                 
✔ |          2 | 124 [2.1s]                                                                                                 
✔ |          2 | 125 [2.2s]                                                                                                 
✔ |          2 | 126 [2.2s]                                                                                                 
✔ |          2 | 127 [2.2s]                                                                                                 
✔ |          2 | 128 [2.4s]                                                                                                 
✔ |          2 | 129 [2.2s]                                                                                                 
✔ |          2 | 130 [2.2s]                                                                                                 
✔ |          2 | 131 [2.1s]                                                                                                 
✔ |          2 | 132 [2.2s]                                                                                                 
✔ |          2 | 133 [2.2s]                                                                                                 
✔ |          2 | 134 [2.2s]                                                                                                 
✔ |          2 | 135 [2.2s]                                                                                                 
✔ |          2 | 136[90m [2.1s]                                                                                             
✔ |          2 | 137 [2.1s]                                                                                                 
✔ |          2 | 138 [2.2s]                                                                                                 
✔ |          2 | 139 [2.2s]                                                                                                 
✔ |          2 | 140 [2.0s]                                                                                                 
✔ |          2 | 141 [2.2s]                                                                                                 
[32m✔ |          2 | 142 [2.2s]                                                                                             
✔ |          2 | 143 [2.3s]                                                                                                 
✔ |          2 | 144 [2.6s]                                                                                                 
✔ |          2 | 145 [2.1s]                                                                                                 
✔ |          2 | 146 [2.1s]                                                                                                 
✔ |          2 | 147 [2.1s]                                                                                                 
✔ |          2 | 148 [2.3s]                                                                                                 
✔ |          2 | 149 [3.0s]                                                                                                 
✔ |          2 | 150 [2.5s]                                                                                                 
✔ |          2 | 151 [2.2s]                                                                                                 
✔ |          2 | 152 [2.2s]                                                                                                 
✔ |          2 | 153 [3.1s]                                                                                                 
✔ |          2 | 154 [3.3s]                                                                                                 
✔ |          2 | 155 [3.8s]                                                                                                 
✔ |          2 | 156 [4.4s]                                                                                                 
✖ | 1        1 | 157 [7.8s]                                                                                                 
──────────────────────────���─────────────────────────────────────────────────────────────────────────────────────────────────
Error (test-157.R:13:3): Screenshot
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to copy '/tmp/RtmpVf2ZgO/st2-a0b17ea8a7c5.png' to '/tmp/RtmpVf2ZgO/st2-a0b193d1864/001.png': no such file or directory
Backtrace:
    ▆
 1. └─app$expect_screenshot() at test-157.R:13:3
 2.   └─shinytest2:::app_expect_screenshot_and_variant(...)
 3.     └─shinytest2:::app_expect_screenshot(self, private, ...)
 4.       └─self$get_screenshot(...)
 5.         └─shinytest2:::app_get_screenshot(...)
 6.           └─fs::file_copy(path, file)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⠏ |          0 | 158                                                                                                        [2024-04-02 13:49:49] [error] handle_read_frame error: websocketpp.transport:7 (End of File)
✖ | 1        0 | 158 [122.7s]                                                                                               
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error (test-158.R:3:1): (code run outside of `test_that()`)
Error in `app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout, 
    timeout = timeout, wait = wait, expect_values_screenshot_args = expect_values_screenshot_args, 
    screenshot_args = screenshot_args, check_names = check_names, 
    name = name, variant = variant, view = view, height = height, 
    width = width, seed = seed, clean_logs = clean_logs, shiny_args = shiny_args, 
    render_args = render_args, options = options)`: Shiny app did not become stable in 30000ms.
Message: An error occurred while waiting for Shiny to be stable
Caused by error in `app_wait_for_idle()`:
! An error occurred while waiting for Shiny to be stable


ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
ℹ AppDriver logs:
{shinytest2} R  info   13:49:44.83 Start AppDriver initialization
{shinytest2} R  info   13:49:44.83 Starting Shiny app
{shinytest2} R  info   13:49:46.30 Creating new ChromoteSession
{shinytest2} R  info   13:49:46.34 Navigating to Shiny app
{shinytest2} R  info   13:49:46.42 Injecting shiny-tracer.js
{chromote}   JS info   13:49:46.43 shinytest2; jQuery not found
{chromote}   JS info   13:49:46.43 shinytest2; Loaded
{shinytest2} R  info   13:49:46.43 Waiting for Shiny to become ready
{chromote}   JS info   13:49:46.59 shinytest2; jQuery found
{chromote}   JS info   13:49:46.60 shinytest2; Waiting for shiny session to connect
{chromote}   JS info   13:49:47.09 shinytest2; Connected
{shinytest2} R  info   13:49:47.11 Waiting for Shiny to become idle for 200ms within 30000ms
{chromote}   JS info   13:49:47.13 shinytest2; Waiting for Shiny to be stable
{shinytest2} R  info   13:51:47.14 Error while initializing AppDriver:
                                   Shiny app did not become stable in 30000ms.
                                   Message: An error occurred while waiting for Shiny to be stable
                                   Caused by error in `app_wait_for_idle()`:
                                   ! An error occurred while waiting for Shiny to be stable
{shiny}      R  stderr ----------- Loading required package: shiny
{shiny}      R  stderr ----------- Running application in test mode.
{shiny}      R  stderr ----------- 
{shiny}      R  stderr ----------- Listening on http://127.0.0.1:5991


Caused by error in `app_initialize_()`:
! Shiny app did not become stable in 30000ms.
Message: An error occurred while waiting for Shiny to be stable
Caused by error in `app_wait_for_idle()`:
! An error occurred while waiting for Shiny to be stable
Backtrace:
     ▆
  1. ├─shinytest2::AppDriver$new(...) at test-158.R:3:1
  2. │ └─shinytest2 (local) initialize(...)
  3. │   └─shinytest2:::app_initialize(...)
  4. │     ├─base::withCallingHandlers(...)
  5. │     └─shinytest2:::app_initialize_(self, private, ..., view = view)
  6. │       ├─base::withCallingHandlers(...)
  7. │       └─self$wait_for_idle(duration = 200, timeout = private$load_timeout)
  8. │         └─shinytest2:::app_wait_for_idle(...)
  9. │           └─shinytest2:::app_abort(self, private, "An error occurred while waiting for Shiny to be stable")
 10. │             └─rlang::abort(..., app = self, call = call)
 11. │               └─rlang:::signal_abort(cnd, .file)
 12. │                 └─base::signalCondition(cnd)
 13. ├─shinytest2 (local) `<fn>`(`<rlng_rrr>`)
 14. │ └─shinytest2:::app_abort(...)
 15. │   └─rlang::abort(..., app = self, call = call)
 16. │     └─rlang:::signal_abort(cnd, .file)
 17. │       └─base::signalCondition(cnd)
 18. └─shinytest2 (local) `<fn>`(`<rlng_rrr>`)
 19.   └─shinytest2:::app_abort(...)
 20.     └─rlang::abort(..., app = self, call = call)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ |          2 | 159 [4.3s]                                                                                                 
✔ |          2 | 160 [2.1s]                                                                                                 
✔ |          2 | 161 [2.1s]                                                                                                 
✔ |          2 | 162 [2.1s]                                                                                                 
✔ |          2 | 163 [2.5s]                                                                                                 
✔ |          2 | 164 [2.8s]                                                                                                 
✔ |          2 | 165 [2.2s]                                                                                                 
✔ |          2 | 166 [2.3s]                                                                                                 
✔ |          2 | 167 [2.2s]                                                                                                 
✔ |          2 | 168 [2.2s]                                                                                                 
✔ |          2 | 169 [2.1s]                                                                                                 
✔ |          2 | 170 [2.2s]                                                                                                 
✔ |          2 | 171 [2.1s]                                                                                                 
✔ |          2 | 172 [2.1s]                                                                                                 
✔ |          2 | 173 [2.2s]                                                                                                 
✔ |          2 | 174 [2.3s]                                                                                                 
✔ |          2 | 175 [2.4s]                                                                                                 
✔ |          2 | 176 [2.2s]                                                                                                 
✔ |          2 | 177 [2.2s]                                                                                                 
✔ |          2 | 178 [2.3s]                                                                                                 
✔ |          2 | 179 [2.2s]                                                                                                 
✔ |          2 | 180 [2.3s]                                                                                                 
✔ |          2 | 181 [2.7s]                                                                                                 
✔ |          2 | 182 [2.1s]                                                                                                 
✔ |          2 | 183 [2.3s]                                                                                                 
✔ |          2 | 184 [2.5s]                                                                                                 
✔ |          2 | 185 [2.2s]                                                                                                 
✔ |          2 | 186 [2.1s]                                                                                                 
✔ |          2 | 187 [2.4s]                                                                                                 
✔ |          2 | 188 [2.3s]                                                                                                 
✔ |          2 | 189 [2.2s]                                                                                                 
✔ |          2 | 190 [2.9s]                                                                                                 
✔ |          2 | 191 [2.2s]                                                                                                 
✔ |          2 | 192 [2.2s]                                                                                                 
✔ |          2 | 193 [2.1s]                                                                                                 
✔ |          2 | 194 [2.2s]                                                                                                 
✔ |          2 | 195 [2.1s]                                                                                                 
✔ |          2 | 196 [2.1s]                                                                                                 
✔ |          2 | 197 [2.1s]                                                                                                 
✔ |          2 | 198 [2.3s]                                                                                                 
✔ |          2 | 199 [2.1s]                                                                                                 

══ Results ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Duration: 624.2 s

── Failed tests ───────────────��────────────────────────────────────────────────────────────────────────────────────────────
Error (test-052.R:13:3): Screenshot
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to copy '/tmp/RtmpVf2ZgO/st2-a0b12aa76842.png' to '/tmp/RtmpVf2ZgO/st2-a0b1da40167/001.png': no such file or directory
Backtrace:
    ▆
 1. └─app$expect_screenshot() at test-052.R:13:3
 2.   └─shinytest2:::app_expect_screenshot_and_variant(...)
 3.     └─shinytest2:::app_expect_screenshot(self, private, ...)
 4.       └─self$get_screenshot(...)
 5.         └─shinytest2:::app_get_screenshot(...)
 6.           └─fs::file_copy(path, file)

Error (test-053.R:13:3): Screenshot
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to copy '/tmp/RtmpVf2ZgO/st2-a0b1737452f3.png' to '/tmp/RtmpVf2ZgO/st2-a0b170824556/001.png': no such file or directory
Backtrace:
    ▆
 1. └─app$expect_screenshot() at test-053.R:13:3
 2.   └─shinytest2:::app_expect_screenshot_and_variant(...)
 3.     └─shinytest2:::app_expect_screenshot(self, private, ...)
 4.       └─self$get_screenshot(...)
 5.         └─shinytest2:::app_get_screenshot(...)
 6.           └─fs::file_copy(path, file)

Error (test-105.R:13:3): Screenshot
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to copy '/tmp/RtmpVf2ZgO/st2-a0b150583f2e.png' to '/tmp/RtmpVf2ZgO/st2-a0b14cdda571/001.png': no such file or directory
Backtrace:
    ▆
 1. └─app$expect_screenshot() at test-105.R:13:3
 2.   └─shinytest2:::app_expect_screenshot_and_variant(...)
 3.     └─shinytest2:::app_expect_screenshot(self, private, ...)
 4.       └─self$get_screenshot(...)
 5.         └─shinytest2:::app_get_screenshot(...)
 6.           └─fs::file_copy(path, file)

Error (test-157.R:13:3): Screenshot
<ENOENT/fs_error/error/condition>
Error: [ENOENT] Failed to copy '/tmp/RtmpVf2ZgO/st2-a0b17ea8a7c5.png' to '/tmp/RtmpVf2ZgO/st2-a0b193d1864/001.png': no such file or directory
Backtrace:
    ▆
 1. └─app$expect_screenshot() at test-157.R:13:3
 2.   └─shinytest2:::app_expect_screenshot_and_variant(...)
 3.     └─shinytest2:::app_expect_screenshot(self, private, ...)
 4.       └─self$get_screenshot(...)
 5.         └─shinytest2:::app_get_screenshot(...)
 6.           └─fs::file_copy(path, file)

Error (test-158.R:3:1): (code run outside of `test_that()`)
Error in `app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout, 
    timeout = timeout, wait = wait, expect_values_screenshot_args = expect_values_screenshot_args, 
    screenshot_args = screenshot_args, check_names = check_names, 
    name = name, variant = variant, view = view, height = height, 
    width = width, seed = seed, clean_logs = clean_logs, shiny_args = shiny_args, 
    render_args = render_args, options = options)`: Shiny app did not become stable in 30000ms.
Message: An error occurred while waiting for Shiny to be stable
Caused by error in `app_wait_for_idle()`:
! An error occurred while waiting for Shiny to be stable


ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
ℹ AppDriver logs:
{shinytest2} R  info   13:49:44.83 Start AppDriver initialization
{shinytest2} R  info   13:49:44.83 Starting Shiny app
{shinytest2} R  info   13:49:46.30 Creating new ChromoteSession
{shinytest2} R  info   13:49:46.34 Navigating to Shiny app
{shinytest2} R  info   13:49:46.42 Injecting shiny-tracer.js
{chromote}   JS info   13:49:46.43 shinytest2; jQuery not found
{chromote}   JS info   13:49:46.43 shinytest2; Loaded
{shinytest2} R  info   13:49:46.43 Waiting for Shiny to become ready
{chromote}   JS info   13:49:46.59 shinytest2; jQuery found
{chromote}   JS info   13:49:46.60 shinytest2; Waiting for shiny session to connect
{chromote}   JS info   13:49:47.09 shinytest2; Connected
{shinytest2} R  info   13:49:47.11 Waiting for Shiny to become idle for 200ms within 30000ms
{chromote}   JS info   13:49:47.13 shinytest2; Waiting for Shiny to be stable
{shinytest2} R  info   13:51:47.14 Error while initializing AppDriver:
                                   Shiny app did not become stable in 30000ms.
                                   Message: An error occurred while waiting for Shiny to be stable
                                   Caused by error in `app_wait_for_idle()`:
                                   ! An error occurred while waiting for Shiny to be stable
{shiny}      R  stderr ----------- Loading required package: shiny
{shiny}      R  stderr ----------- Running application in test mode.
{shiny}      R  stderr ----------- 
{shiny}      R  stderr ----------- Listening on http://127.0.0.1:5991


Caused by error in `app_initialize_()`:
! Shiny app did not become stable in 30000ms.
Message: An error occurred while waiting for Shiny to be stable
Caused by error in `app_wait_for_idle()`:
! An error occurred while waiting for Shiny to be stable
Backtrace:
     ▆
  1. ├─shinytest2::AppDriver$new(...) at test-158.R:3:1
  2. │ └─shinytest2 (local) initialize(...)
  3. │   └─shinytest2:::app_initialize(...)
  4. │     ├─base::withCallingHandlers(...)
  5. │     └─shinytest2:::app_initialize_(self, private, ..., view = view)
  6. │       ├─base::withCallingHandlers(...)
  7. │       └─self$wait_for_idle(duration = 200, timeout = private$load_timeout)
  8. │         └─shinytest2:::app_wait_for_idle(...)
  9. │           └─shinytest2:::app_abort(self, private, "An error occurred while waiting for Shiny to be stable")
 10. │             └─rlang::abort(..., app = self, call = call)
 11. │               └─rlang:::signal_abort(cnd, .file)
 12. │                 └─base::signalCondition(cnd)
 13. ├─shinytest2 (local) `<fn>`(`<rlng_rrr>`)
 14. │ └─shinytest2:::app_abort(...)
 15. │   └─rlang::abort(..., app = self, call = call)
 16. │     └─rlang:::signal_abort(cnd, .file)
 17. │       └─base::signalCondition(cnd)
 18. └─shinytest2 (local) `<fn>`(`<rlng_rrr>`)
 19.   └─shinytest2:::app_abort(...)
 20.     └─rlang::abort(..., app = self, call = call)

[ FAIL 5 | WARN 0 | SKIP 0 | PASS 392 ]
Deleting unused snapshots:
• linux-4.3/052/001.png
• linux-4.3/053/001.png
• linux-4.3/105/001.png
• linux-4.3/157/001.png
• linux-4.3/158/001.png
Error: Test failures
In addition: Warning messages:
1: In onRejected(reason) :
  An error occurred: Error in onRejected(...): code: -32000
  message: Unable to capture screenshot

2: In onRejected(reason) :
  An error occurred: Error: Chromote: timed out waiting for response to command Page.captureScreenshot

3: In onRejected(reason) :
  An error occurred: Error in onRejected(...): code: -32000
  message: Unable to capture screenshot

4: In onRejected(reason) :
  An error occurred: Error in onRejected(...): code: -32000
  message: Unable to capture screenshot

Does anyone have any ideas for resolving this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant