未找到Jenkins单元测试连接字符串

时间:2014-12-01 08:10:09

标签: unit-testing jenkins mstest

我的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中有连接字符串。单元测试在视觉工作室本身也运行良好。如果有人能说出一些亮点,我将不胜感激。

0 个答案:

没有答案