Browse by Tags

在單元測試專案使用 dynamic 出現 CSharpArgumentInfo.Create 錯誤
在自動測試專案加入使用 dynamic 型別的測試方法後,Visual Studio 2017 傳回編譯錯誤: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create' 在 Microsoft Connect 查到相似 錯誤回報 ,案例集中在微軟單位測試及 NUnit 測試專案(NUnit 可透過更新版本解決),推測為單元測試專案預設未參照 Microsoft...
Posted 25 July 2017 10:24 PMJeffrey | with no comments 3,220
【茶包射手筆記】NUnit 發生 OutOfMemoryException
從 Github 取得 ServiceStack.Text 想幫忙修 Bug。專案使用 NUnit 跑單元測試,為方便測試,在 Visual Studio 2017 安裝 NUnit 3 Test Adapter,安裝後可由 Test Explorer 直接執行測試。 不料,編譯後 Test Explorer 只找到一項測試,Output / Tests 則出現大量 OutOfMemoryException: Exception System.OutOfMemoryException, Exception...
Protractor、TypeScript與Chai
搞定用TypeScript寫Protractor測試,陸續參考一些範例,發現蠻多人偏好使用 Chai 程式庫。原本Protractor預設的寫法expect(foo).toEqual(5),改用Chai之後變成: expect(foo).to.be.a('string'); expect(foo).to.equal('bar'); expect(foo).to.have.length(3); expect(tea).to.have.property('flavors'...
Posted 24 May 2015 11:18 AMJeffrey | with no comments 6,135
Filed under: ,
使用TypeScript撰寫Protractor測試
裝好Protractor ,就可以動手寫測試了。Protractor預設使用Jasmine,之前寫Angular單元測試時 玩過 ,語法並不陌生,但是用慣神兵利器,遇上超過一百行的JavaScript,少了Visual Studio + TypeScript拎杯根本活不下去,啊啊啊啊~(顯示為鎚子被沒收的雷神索爾在地上打滾) 因此,首要任務得找出使用TypeScript撰寫Protractor測試的方法。我選擇用VS2013開啟一個空白Web Apllication專案,不啟用MVC、Web API也不啟用WebForm...
Posted 23 May 2015 08:35 AMJeffrey | with no comments 7,879
Protractor Windows安裝補充
打算用 Protractor 做網頁End-to-End測試。Protractor是Angular的主流測試工具,End-to-End測試時會開啟瀏覽器連上網站模擬各種操作,以使用者角度實際驗證功能是否正常。 第一步要在開發機器Windows 8安裝node.js跟Protractor,主要參考Paul Li圖文並茂的介紹文- Protractor - 環境設定篇 ,安裝大致順利,但過程遇到一些小亂流,特筆記之。 第一個問題來自公司的特殊網路環境,基於資安監管要求,網管設備攔截HTTPS傳輸從中抽換SSL憑證...
Posted 22 May 2015 07:56 AMJeffrey | with no comments 7,278
Filed under: ,

搜尋

Go

<March 2023>
SunMonTueWedThuFriSat
2627281234
567891011
12131415161718
19202122232425
2627282930311
2345678
 
RSS
創用 CC 授權條款
【廣告】
twMVC
最新回應

Tags 分類檢視
關於作者

一個醉心技術又酷愛分享的Coding魔人,十年的IT職場生涯,寫過系統、管過專案, 也帶過團隊,最後還是無怨無悔地選擇了技術鑽研這條路,近年來則以做一個"有為的中年人"自許。

文章典藏
其他功能

這個部落格


Syndication