我在Visual Studio 2008团队测试它提供了以下错误开始在调试模式下测试时,有一个问题:Visual Studio的单元测试失败的开始
“无法排队试运行“{用户名@计算机名}': 你调用的对象是空的。”
我搜索了错误,但没有喜悦。甚至不明白它是什么意思,因为它太简短。有没有人遇到过这个?
请注意,如果我不调试,我可以正常运行测试,而且无论运行的测试如何,我都会得到相同的错误。
谢谢
姆斯瓦蒂
ETA:
作为新的Visual Studio团队测试,我不知道有更好的异常日志那么我所看到。总之,这里是:
<Exception>
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage.
ShowToolWindow [T](T& toolWindow, String errorMessage, Boolean show)
at Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage.
OpenTestResultsToolWindow()
at Microsoft.VisualStudio.TestTools.TestCaseManagement.SolutionIntegrationManager.
DebugTarget(DebugInfo debugInfo, Boolean prepareEnvironment)
at Microsoft.VisualStudio.TestTools.TestManagement.DebugProcessLauncher.Launch(
String exeFileName, String args, String workingDir,
EventHandler processExitedHandler, Process& process)
at Microsoft.VisualStudio.TestTools.TestManagement.LocalControllerProxy.StartProcess(
TestRun run)
at Microsoft.VisualStudio.TestTools.TestManagement.LocalControllerProxy.RestartProcess(
TestRun run)
at Microsoft.VisualStudio.TestTools.TestManagement.LocalControllerProxy.PrepareProcess(
TestRun run)
at Microsoft.VisualStudio.TestTools.TestManagement.LocalControllerProxy.
InitializeController(TestRun run)
at Microsoft.VisualStudio.TestTools.TestManagement.ControllerProxy.QueueTestRunWorker(
Object state)
</Exception>
你能从异常中发布完整的堆栈跟踪? – 2010-02-22 15:50:14
这个错误是没用的。你需要检查来自TT的日志。我从来没有使用TT,只通过TFS中的签入规则完成了CI。每当我得到这些错误时,我都可以检查构建日志中的所有细节。不确定在TT中类似的是什么。 – Will 2010-02-22 15:56:06