作者H45 (!H45)
看板OOAD
標題[資料] Unit Testing Framework
時間Wed Jul 18 23:38:00 2007
Unit 意指一個最小的單位,而這個最小單位的程式碼仍然大到足以進行測試,所以
Unit Testing 就是盡可能以最小單位來進行測試的程序。
在物件導向的編程中,Unit 往往指的就是 Class, 也就是說一個 Unit Testing 就是在
測試一個 Class.
下面提供現成的測試工具給不同的程式語言使用:
Java: junit
http://www.junit.org/
.Net: nunit
http://www.nunit.org/
C#: csunit
http://www.csunit.org/
Linux/BSD/UNIX-like: xunit
http://sourceforge.net/projects/xunit/
可以參考看看
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.211.211.53
※ 編輯: H45 來自: 218.211.211.53 (07/18 23:38)
推 PsMonkey:有點撈過界的嫌疑... cccc 07/19 01:22
推 H45:garrrr? 是說撈到 JAVA 那邊去了嗎...? 07/19 01:51
推 godfat:unit test 不見得要是 oo 07/19 12:29
推 H45:但是 oo 包含著 unit test... 07/19 13:12
推 adrianshum:重點是 OO 不需要包含 unit test 吧... unit test 通常 07/19 14:17
→ adrianshum:是 XP/Agile development 的特點, 與 OOAD 無關 07/19 14:17
推 bejoe:unit test在每一種開發流程都很重要吧 08/03 21:53