通过TeamCity运行测试时出现Gallio错误:“0”;可能的原因包括无效的测试运行程序参数和堆栈溢出;

通过TeamCity运行测试时出现Gallio错误:“0”;可能的原因包括无效的测试运行程序参数和堆栈溢出;,teamcity,mbunit,gallio,Teamcity,Mbunit,Gallio,通过TeamCity(8.0.2 build 27482)运行MbUnit(3.4.14.0)测试时,我得到了错误: [Error] A fatal exception occurred while running tests. Possible causes include invalid test runner parameters and stack overflows. Gallio.Model.ModelException: An exception occurred while i

通过TeamCity(8.0.2 build 27482)运行MbUnit(3.4.14.0)测试时,我得到了错误:

[Error] A fatal exception occurred while running tests.  Possible causes include invalid test runner parameters and stack overflows.
Gallio.Model.ModelException: An exception occurred while invoking a test driver. 
---> Gallio.Model.ModelException: Gallio.Model.ModelException: A fatal exception occurred while running test commands. 
---> Gallio.Runtime.RuntimeException: Could not resolve instance of component 'Gallio.PatternTestController'.
---> Gallio.Runtime.RuntimeException: Could not resolve required dependency 'formatter' of type 'Gallio.Runtime.Formatting.IFormatter' due to an exception. ---> Gallio.Runtime.RuntimeException: Could not resolve instance of component 'Gallio.Formatter'. 
---> Gallio.Runtime.RuntimeException: Could not resolve required dependency 'rules' of type 'Gallio.Runtime.Formatting.IFormattingRule[]' due to an exception. ---> Gallio.Runtime.RuntimeException: Could not resolve instance of component 'Gallio35.ExpressionFormattingRule'. 
---> Gallio.Runtime.RuntimeException: Could not resolve the component handler of component 'Gallio35.ExpressionFormattingRule'.
---> Gallio.Runtime.RuntimeException: Could not resolve the component type of component 'Gallio35.ExpressionFormattingRule'. 
---> Gallio.Common.Reflection.ReflectionResolveException: Could not resolve type 'Gallio.Runtime.Formatting.ExpressionFormattingRule, Gallio35'. 
---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)   at System.Type.GetType(String typeName)   at Gallio.Common.Reflection.TypeName.Resolve() in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Common\Reflection\TypeName.cs:line 175   
--- End of inner exception stack trace ---   at Gallio.Common.Reflection.TypeName.Resolve() in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Common\Reflection\TypeName.cs:line 184   at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentType() in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Runtime\Extensibility\ComponentDescriptor.cs:line 111   
--- End of inner exception stack trace 
在上一次测试运行中,一些后端测试运行正常,但在最后一个阶段,UI测试挂起,我取消了TeamCity作业

你知道什么会导致错误吗


谢谢。

我的一位同事建议在构建服务器上重新启动TeamCity服务。
这很有帮助。

您有一个
OutOfMemoryException
。您可以检查生成服务器上的内存使用情况吗?谢谢。我会检查的。内存使用率可以接受,40%-50%。问题可能出在我的测试上吗?你是否一直在从内存异常中得到这个结果?如果是,则在运行测试时查看mem发生了什么。是的,一致。我没有很多考试。我认为,失败发生在测试开始运行时。在测试运行期间,我没有看到任何内存问题。