Visual Studio 2012 Express for Web does not run unit tests

I have a C # project created in VS2010 and then imported in 2012 express (web). However, when I create it, unit tests do not run. Going to the test conductor gives me the opportunity to click "run all", which simply makes the assembly run without tests.

thinking that this could be due to the fact that in 2012 I created a new project in the project as a unit test project, with a simple test (statement true = false). This is displayed in the solution explorer with the correct icon. however, no changes to the design / rebuilding / cleaning have yet been launched.

I have installed update 3, and I have not changed anything, as far as I know, which will affect the tests. Does anyone know what happened?

EDIT: I created a new solution containing nothing but a single unit test (for true==false ), this works as expected, so this is not a VS problem, this is a problem, I just don’t know what else the configuration options might cause failure thus.

+4
source share
2 answers

It was discovered that there are some configuration files in the solution directory that are causing problems. deleting them, fixed the problem.

0
source

I had the same problem when updating a solution from VS 2010 to 2012. All tests have been canceled. I overcame this by deleting the old solution file (VS2010). Then I created a new one using VS2012, and added all the projects to the new solution. After rebuilding, all tests appeared in the test explorer.

0
source

Source: https://habr.com/ru/post/1499391/


All Articles