久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

nunit 僅在作為 tfs msbuild 進程的一部分運行時才測

nunit tests throwing exception only when run as part of tfs msbuild process(nunit 僅在作為 tfs msbuild 進程的一部分運行時才測試拋出異常)
本文介紹了nunit 僅在作為 tfs msbuild 進程的一部分運行時才測試拋出異常的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在使用 TFS 2012 從 Visual Studio 2015 構建和部署解決方案,沒有任何問題.我決定將我的單元測試作為構建過程的先決條件的一部分.

I'm building and deploying a solution from Visual Studio 2015 using TFS 2012 without issues. I have decided to incorporate my unit tests as part of the prerequisites for the build process.

獨立于 msbuild 過程,單元測試運行沒有問題并成功;但是,當我將它們合并為構建過程的一部分時,我的構建中出現以下異常:

Independent of the msbuild process, the unit tests run without issue and succeed; however, when I incorporate them as part of my build process I am getting the following exception in my build:

Exception NUnit.Core.UnsupportedFrameworkException, Exception thrown executing tests in D:Builds4PA1111CEDev1111dBusinmmmTests.dll
 No test is available in D:Builds4PA1111CEDev1111dBusinmmmTests.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.

構建部分成功.

為了確保運行測試,我已將 Process 中的 Disable Tests 屬性設置為 false:

In order to make sure that tests are run, I've set the Disable Tests property within Process to false:

除此之外,我還為自動化測試設置了選項:

唯一可用的測試運行器如下:

The only test runners which are available are as follows:

另外,根據我的擴展和更新,這表明我確實安裝了 nunit 適配器 3:

also, per my extensions and updates, it is showing that I indeed DO have nunit adapter 3 installed:

我做錯了什么?為什么我的構建只能部分成功?

推薦答案

通過 NuGet 使用 NUnit 3 時,我在構建服務器上遇到了同樣的問題.我從 Visual Studio 中卸載了 NUnit 2 和 3 測試適配器,并從機器上卸載了 NUnit 2.我仍然有問題.

I had the same problem on my build server when using NUnit 3 via NuGet. I uninstalled NUnit 2 and 3 test adapters from Visual Studio, and NUnit 2 from the machine. I still had the problem.

在我的情況下,問題是由隱藏在 4 個 NUnit2 DLL 引起的:

In my case the issue was caused by 4 NUnit2 DLLs hiding in :

C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDECommonExtensionsMicrosoftTestWindowExtensions

一旦它們被刪除,TFS 構建就會完美執行.

As soon as they were deleted the TFS build executed perfectly.

這篇關于nunit 僅在作為 tfs msbuild 進程的一部分運行時才測試拋出異常的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Is there a C# library that will perform the Excel NORMINV function?(是否有執行 Excel NORMINV 函數的 C# 庫?)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權列表中選擇 x 個隨機元素(無需替換))
Create a summary description of a schedule given a list of shifts(給定輪班列表,創建時間表的摘要描述)
C# Normal Random Number(C# 普通隨機數)
Standard deviation of generic list?(通用列表的標準偏差?)
AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:創建一個 IAwaitable 的類)
主站蜘蛛池模板: 亚洲国产精品久久久 | 农夫在线精品视频免费观看 | 91精品国产综合久久婷婷香蕉 | 99久久精品国产麻豆演员表 | 午夜影院网站 | 中文字幕色站 | 91久久精品一区二区二区 | 日韩一区二区三区在线观看 | 午夜精品久久久久久久久久久久 | 日本天天操 | 免费在线观看av | 国产在线激情视频 | 日日夜夜免费精品视频 | 91免费视频 | 精品亚洲一区二区三区四区五区 | 成人在线视频网址 | 福利影院在线看 | 亚洲综合色丁香婷婷六月图片 | 综合第一页| 亚洲精品一区二区三区蜜桃久 | 国产欧美性成人精品午夜 | 91精品国产91久久久久青草 | 都市激情亚洲 | 小草久久久久久久久爱六 | 欧美精品一区二区三区四区 | 一区二区三区四区在线 | 亚洲一区综合 | 免费在线毛片 | 日本欧美在线观看视频 | 天天成人综合网 | av免费网站在线 | 久久久久久国产精品免费免费狐狸 | 久久人人网 | 不卡在线一区 | 国产精品一区二区在线 | 欧美激情在线播放 | 亚洲欧美日韩电影 | 欧美中文字幕 | 极品一区 | 欧美性生活一区二区三区 | 另类a v|