Is there a way to override the order in which testthat
tests run when using Ctrl + Shift + T
in RStudio?
It appears that they are presently running in alphabetical order, so I suppose I could change the name of the files (numbered). But is there a more generic way to set the order?
My testthat.R file looks like:
library(testthat)
test_check("myPackage")
The reason that I ask is that some of my code has an obvious heirarchy (class creation, then methods, then other things built on top) and there are so many tests that identifying the "first" failure will simplify things significantly.