Running Unit Test Projects on TFS 2010. Team Build 2010 Does Not Compile Test DLLs

I set up the Team TFS 2010 build configuration to run continuous builds.

Currently, I have 2 test projects that run inside the Visual Studio 2010 development environment without problems.

When I queued the solution (with test projects) for the assembly, the assembly log reports: "No test results."

My build process parameters The automatic test rule matches my test build names:

  • Running tests in assemblies corresponding to ** \ * _ Test.dll.

After checking the Build C folder : / Builds / 2 / [ProjectName] / [BuildName] / Binaries, I noticed that there were no .dll / .pdb files for my test projects; even though all other projects required by the dll are here.

The Test Project do folders exist in C: / Builds / 2 / [ProjectName / [BuildName] / Sources .

My build process parameters, indicated in the section "Elements for assembly" => "Configurations for assembly":

Any CPU | Relase

In Configuration Manager, for my solution, for any CPU and Release , I have my test projects in the Build column.

From all the documentation I read, my tests should be running, but from the above verification it seems that they don't even build.

It would be useful to evaluate any ideas or ideas on how to build and run these unit test projects on my TFS 2010 build server.

Thanks!

+4
source share
1 answer

When setting up the build, you can specify the vsmdi file instead of inserting a wildcard. Does it get the same result?

0
source

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


All Articles