Multi - 自動產生“test idea”

TIB發表於2010-03-09

 

MultiBrian Marick寫的一個小程式,用於為表示式自動產生測試用例(或者叫“test ideas”)。

 

Multi - Generating test ideas from expressions with booleans and relational operators

 

A test idea is a brief statement of something that should be tested. For example, if you're testing a square root function, one idea for a test would be "test a number less than zero". The idea is to check if the code handles an error case.

 

關於這個測試用例設計輔助小工具的基本原理和來源可參考《Testing for Programmers

http://www.exampler.com/testing-com/writings/half-day-programmer.pdf

 

 

下面是使用這個小程式的一個例子:

% multi

Type in an expression.

'q' to quit.

> a && b < c

Test ideas for (a && (b<c)):

       a          (b<c)

   -----   ------------

    true   b barely < c

   FALSE           true

    true           b==c

 

> q

 

 

Multi是用java寫的小工具,執行需要java支援,安裝和執行的方法如下:

  1. Fetch either the tar archive or the zip archive. Extract the files.
  2. You'll see two jar files: Multi.jar and Trace.jar. Put those in your CLASSPATH.
  3. Run the program with java com.testing.multi.Multi (The multi script will save you typing.)

 

下載地址:

http://www.exampler.com/testing-com/tools/multi/Multi.zip

 

 

相關文章