我的jenkins单元测试返回了以下stacktrace
<ErrorInfo>
<Message>Initialization method UpstreamBatchTest.Initialize threw exception. System.InvalidOperationException: System.InvalidOperationException: No connection string named 'DBEntities' could be found in the application config file..</Message>
<StackTrace> at System.Data.Entity.Internal.LazyInternalConnection.get_ConnectionHasModel()
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
at System.Data.Entity.Internal.InternalContext.ExecuteSqlCommand(String sql, Object[] parameters)
at System.Data.Entity.Database.ExecuteSqlCommand(String sql, Object[] parameters)
但是,我的app.config中有连接字符串。单元测试在视觉工作室本身也运行良好。如果有人能说出一些亮点,我将不胜感激。