Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run tests in 64-bit

Tags:

c#

mstest

64-bit

I got a ADO.NET driver which is compiled as 64-bit. I therefore need to run mstests in 64-bit mode. Is that possible?

(the dev machine is 64bit).

like image 606
jgauffin Avatar asked May 04 '11 07:05

jgauffin


People also ask

How do I run Visual Studio in 64-bit mode?

From the Visual Studio menu, choose Test, then choose Processor Architecture for AnyCPU projects. Choose x64 to run the tests as a 64-bit process.

Is there a 64-bit Visual Studio?

Visual Studio 2022 on Windows is now a 64-bit application.

How do I run a test in .NET core?

Let us now click on Run All button in Test Explorer. It will first build the code and the run the test and you will see the total time taken by the test. Let us change the test method so that we can see the output when the test fails. Let us execute the test again by clicking on the Run All button link.

Is there a 64-bit version of Visual Studio 2019?

No! There is no 64-bit version of Visual Studio.


2 Answers

Visual Studio has a built in option for this. It was a bit hard to find (if you do not know where to look).

Doubleclick on the local.testsettings file in Solution Explorer and select Hosts in the listbox. Then change as the image shows.

You must do your tests in a 64-bit OS and your application should be compiled with AnyCPU.

Setting to change

like image 113
jgauffin Avatar answered Sep 19 '22 15:09

jgauffin


It is easier in Visual studio 2013. Select Test->Test Settings->Default Processor Architecture->x64 before running the tests

like image 41
Jiju Cyriac Manjooran Avatar answered Sep 20 '22 15:09

Jiju Cyriac Manjooran