星期三, 四月 12, 2006

javascript测试工具JsUnit

测试浏览器端页面上的javascript。方法类似测试Java class的JUnit。他们都是XUnit的一部分

see http://www.edwardh.com/jsunit/


XUnit包含的单元测试包除了JUnit(java), JsUnit(js), 还有CppUnit(C++), PHPUnit(php), UTPlsql(oracle PL/SQL)等。

What is an XUnit framework?

  • A standardized set of language-independent concepts and constructs for writing and running unit tests
  • There is an XUnit framework for virtually every language
  • Traditionally open-source
  • All support certain constructs:
  • TestCase and TestSuite are well-defined entities
  • The assertion syntax follows rough standards, e.g. assertEquals(comment, expected, actual)
  • All provide a TestRunner program to run tests

Listed at http://xprogramming.com/software.htm


星期六, 四月 01, 2006

Ruby在线交互教程

在线教程海了去,不过以这种交互方式进行的实在新鲜,a hands-on tutorial。用了一下,确实方便直观。

try ruby!(in your browser)

very hot! In delicious,this url has been saved by 3389 people