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

时间:2014-07-21 10:36:51

标签: 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 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作业。

任何可能导致错误的想法?

感谢。

1 个答案:

答案 0 :(得分:0)

我的一位同事建议在构建服务器上重启TeamCity服务。 它有所帮助。