【问题标题】:Teamcity NUnit fails when using JetBrains dotCover使用 JetBrains dotCover 时 Teamcity NUnit 失败
【发布时间】:2011-10-29 16:17:18
【问题描述】:

我的构建失败并显示此日志:

[12:13:40]: Checking for changes
[12:13:41]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[12:13:41]: Checkout directory: C:\TeamCity\buildAgent\work\9fecf8ffe0e03cce
[12:13:41]: Updating sources: server side checkout...
[12:13:41]: Publishing internal artifacts (4s)
[12:13:41]: Step 1/3: Visual Studio (sln) (17s)
[12:13:58]: Step 2/3: NUnit (19s)
[12:13:58]: Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[12:13:58]: in directory: C:\TeamCity\buildAgent\work\9fecf8ffe0e03cce
[12:14:02]: JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2011 JetBrains s.r.o. All rights reserved.
[12:14:05]: Coverage session started [18.8.2011 12:14:05]
[12:14:09]: Start TeamCity NUnit Test Runner
[12:14:09]: Running NUnit-2.5.10 tests under .NET Framework v2.0 x86
[12:14:10]: MySolution.Communication.Tests.dll
[12:14:10]: MySolution.Communication.Tests.TestClass.CanUseGetRequestPacket
[12:14:18]: Coverage session finished [18.8.2011 12:14:18]
[12:14:18]: Analysed application exited with code '255'
[12:14:18]: Coverage session finished but no snapshots were created. 
[12:14:18]: Process exited with code -2
[12:14:18]: Step NUnit failed
[12:14:18]: Build step Duplicates finder (.NET) skipped because of previous step failure
[12:14:18]: Publishing internal artifacts
[12:14:18]: Build finished

我正在使用 Teamcity Professional 6.5.2、NUnit-2.5.10 v2.0 MSIL 和内置的 JetBrains dotCover。没有 JetBrains dotCover 一切正常。在另一个项目中,我使用相同的配置,一切都很好。我的测试程序集可能有问题吗?

【问题讨论】:

  • 查看teamcity中的Fuul Build Log,尝试搜索“异常”、“失败”字样

标签: nunit teamcity dotcover


【解决方案1】:

dotCover 因混淆程序集而失败。

【讨论】:

  • 这似乎是解决问题的关键。我如何知道程序集是否被混淆?如何防止混淆?顺便说一句,这种行为是否记录在任何地方?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-06-11
  • 2015-10-02
  • 1970-01-01
相关资源
最近更新 更多