MS Test x86 vs x64 - HOW?

Just wondered if you guys have given any thoughts to UI options of x86/x64 when running MSTests?

For that matter, how do you configure MSTest to run in x86 vs x64 with continua?

 

As far as I can tell MSTest doesn’t really have any options for this. You can only run 64bit tests if the target platform is Any Cpu. Or am I missing something?

normally, you can define it in the *.testsettings file under “hosts”: “Run tests in 32 or 64 bit process”

Christian,
In VS 2012 there is a menu option in the Test -> TestSettings -> Default Processor Architecture -> x64/x86 which requires a VS reboot to configure correctly. I found I had to use the Environment.Is64BitProcess .net property to determine what was going on during testing on my workstation. Interestingly I found my latest MS Test project didn’t add those *.*settings files which I believe could be used to configure MSTest by Continua. I know the same x64/x86 issue will apply with Nunit as well. I think there must have been a change in MSTest for VS 2012, but I’m still looking into that.

Interestingly the Nunit property collectors include Nunit-{version}-x86 options, while MS seems to have make this much harder for MSTest based on Rupert Rawnsleys discussion on the topic see - http://rupertrawnsley.blogspot.com.au/2011/04/mstest-and-64bit.html .

I’m getting a lot of mixed architecture environments for my corporate desktop customers, so I’m going to need to force x86 unit tests and x64 unit tests to run over the code that is sensitive to architecture and registry issues that go with that. Just take the idea that users can have a x64 operating system and install x86 MS Office, which then requires your application to use the x86 drivers to read Excel data files etc. Royal PITA.