小编swm*_*wmi的帖子

Visual Studio单元测试无法启动

我在Visual Studio 2008 Team Test中的调试模式下启动测试时遇到问题,它出现以下错误:

"无法排队测试运行'{user @ machinename}':对象引用未设置为对象的实例."

我用谷歌搜索错误但没有快乐.甚至不明白这意味着什么,因为它太简短了.有人遇到过这个吗?

请注意,如果我没有调试,我可以运行测试,无论我运行的测试如何,我都会得到相同的错误.

谢谢,

斯瓦特

ETA:

作为Visual Studio Team Test的新手,我不知道有什么比我看到的更好的异常日志.无论如何,这里是:

<Exception>
System.NullReferenceException: Object reference not set to an instance of an object.

at Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage.
ShowToolWindow [T](T&amp; 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&amp; 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>
Run Code Online (Sandbox Code Playgroud)

unit-testing visual-studio-2008

6
推荐指数
1
解决办法
1709
查看次数

标签 统计

unit-testing ×1

visual-studio-2008 ×1