You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm adding ExtendedTasks to a module that has testServer tests for some of the reactives. I'm curious if there's any way to test the outputs of an ExtendedTask in testServer? I realize I may be after contradictory things here and this may not be possible.
The example below doesn't work, which makes sense since expect_equal() is called before the ExtendedTask returns a result. I thought maybe setting the future plan to "sequential" would make it work, but it didn't.
I also tried putting the following before the expect_equal() just to check on the task's status and it seems to stay in "running" for the whole minute.
I don't think so? bind_task_button() disables the button in the UI while the ExtendedTask is processing, which is not necessary for this minimal reprex since there is no UI.
Sorry for not being helpful. The only thing I know is that there's a way to test ExtendedTask with the shinytest2 package. But as I understand, this requires the bslib button.
I'm adding ExtendedTasks to a module that has testServer tests for some of the reactives. I'm curious if there's any way to test the outputs of an ExtendedTask in testServer? I realize I may be after contradictory things here and this may not be possible.
The example below doesn't work, which makes sense since
expect_equal()
is called before the ExtendedTask returns a result. I thought maybe setting the future plan to"sequential"
would make it work, but it didn't.I also tried putting the following before the
expect_equal()
just to check on the task's status and it seems to stay in "running" for the whole minute.The text was updated successfully, but these errors were encountered: