Control order in which ReSharper executes unit tests
resharper, unit-testing
Solution
This seems like a bit of a hack, but I found that if I remove the files with the slow tests from the project and re-add them they then get run last. So it appears that R# keeps track of the order in which source files containing test classes were added and runs them in that order. (Editing the .csproj file to re-order the files had no effect, so it doesn't seem to use that.)
Problem
Is there any way to tell ReSharper to execute a certain group of tests in a project before others? I still want the parallel execution and I don't need to control it per-method, just per-class will do. The test framework is MSTest if that makes a difference. The reason I want to do this is that some tests work at a low level and are very fast, but other tests work at higher levels and are much slower. I want the fast tests to run first, because if they fail then I know there's something wrong and there's no point in continuing. However, ReSharper currently runs my slow tests first. Edit: The tests are not run in alphabetical order for me (R# 7.1 on VS 2010). I have one source file per class. The tests within a class seem to be run in the order the methods appear in the source code, but I cannot figure out how R# determines the order of test classes. That's what I'm after, since slow and fast tests are in separate classes. That's not alphabetical either, but it is consistent from run to run. Edit 2: OK, figured it out (see answer).