1

テスト ステーションを Windows XP から Windows 7 に切り替えたところ、予期しない問題が発生しました。

NUnit 2.5.9 を使用してテストを実行すると、Windows XP で実行中のある時点で、TeamCity から警告が表示されました。

[16:05:27][Step 2/16] 2013-09-20 16:05:28,181 [watchDog] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[16:05:27][Step 2/16] 2013-09-20 16:05:28,181 [1232] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[16:05:27][Step 2/16] 2013-09-20 16:05:28,181 [2684] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[16:05:27][Step 2/16] 2013-09-20 16:05:28,181 [5940] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[16:05:27][Step 2/16] 2013-09-20 16:05:28,181 [2724] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)

そして、次のエラーメッセージウィンドウがポップアップしました:

ここに画像の説明を入力

しかし、テストは引き続き実行され、正常に終了しました。

現在、Windows 7 に切り替えると、これらの警告がエラーとして表示されます。

[10:48:31][Step 2/16] 2013-09-30 10:48:30,862 [watchDog] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[10:48:31][Step 2/16]
[10:48:31][Step 2/16] 2013-09-30 10:48:30,862 [564] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[10:48:31][Step 2/16] Unhandled Exception: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain.
[10:48:31][Step 2/16] 2013-09-30 10:48:30,862 [5088] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[10:48:31][Step 2/16]
[10:48:31][Step 2/16] 2013-09-30 10:48:30,865 [5840] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null)
[10:48:31][Step 2/16] Unhandled Exception: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain.
[10:48:31][Step 2/16] 2013-09-30 10:48:30,866 [4004] WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain., , (null).

同じエラー メッセージが表示され、テストの実行が停止します。これまでに見つけた簡単な回避策は、このエラー ウィンドウを閉じてテストを続行することです。
TeamCity テスト構成で何らかの形でこの例外をキャッチする方法、またはその他の適切な回避策があるかどうか疑問に思っていますか?
ありがとう

4

0 に答える 0