shiny.benchmark icon indicating copy to clipboard operation
shiny.benchmark copied to clipboard

Possible bug with `move_shinytest2_tests()`

Open averissimo opened this issue 3 years ago • 0 comments

Should move_shinytest2_tests() always move the contents of the testing directory to <project_path>/tests instead of relying on the original name of the directory?

(I suspect there's a bug waiting to happen here, where the user has a name for that directory that is not "tests").

From my understanding, move_shinytest2_tests() relies on the parameter for the shinytests2 test directory to be exactly tests to work properly. If the directory is called tests_shinytests then it fails.

I've setup a branch with this example on the test app:

https://github.com/Appsilon/shiny.benchmark/tree/example_non_standard_name/tests/end2end/app

averissimo avatar Dec 01 '22 13:12 averissimo