0

When I attempt to run automated tests via Microsoft Test Manager, I get the error

"Cannot find the test" .... "with storage '..\bin\debug\mytest.dll".

Why is it looking in there?

By build agent working directory is C:\MyBuildOutput, so when a build is run, the DLL's are output to C:\MyBuildOutput\Binaries.

So why does Microsoft Test Manager expect to find the DLL's under C:\MyBuildOutput\bin\debug ?

I haven't told Microsoft Test Manager to look there, and in fact my build definition build process parameters build my solution in Release mode!

I can get it to work by getting a script to create a bin and debug folder and copying the DLL's in there - but that's just plain inconvenient!!

I think it also expects the bin and debug folder even when I specify a custom build directory using the Microsoft Test Manager command-line utility (tcm.exe).

I'm grateful to hear any explanations, solutions, ideas or thoughts!

Thanks

EDIT: As per solution below, MS Test Manager DOES NOT EXPECT test DLL's under a bin/debug folder (although the error message does almost imply it).

4

1 回答 1

1

问题解决了。

根据此处的论坛主题,我收到此消息的原因与 DLL 无关。我的有序测试列表应该放在项目级别 - 不包含在任何文件夹中。因此,实际上 Microsoft 测试管理器正在与我的测试 DLL 相同的文件夹中寻找有序的测试列表,而实际上它位于子文件夹下。

当我将有序的测试列表移动到与测试 DLL 相同的文件夹时,测试成功执行。

于 2012-08-16T15:44:06.767 回答