请输入您要查询的百科知识:

 

词条 Reductio
释义

  1. Example

  2. Citations and footnotes

  3. External links

{{about|software|the technique of argument|Reductio ad absurdum}}{{Orphan|date=September 2015}}{{Infobox Software
| name = ℝ∊dμcti∅
| logo =
| screenshot =
| caption =
| developer = Tony Morris
| latest_release_version = 2.2
| latest_release_date =
| programming language = Java
| operating_system = JVM
| genre = Software testing
| license = BSD-style
| website =  
|}}{{Portal|Software Testing}}

Reductio is open source software written using the Java Programming Language from an idea that originated in a research paper called QuickCheck: A Lightweight Tool for Random Testing of Haskell Programs.[1] Reductio and QuickCheck utilise a testing technique called Automated Specification-based Testing.

The primary objective of Reductio is to make testing as rigorous as possible, while alleviating developer effort through automation of many common testing tasks. Reductio includes usage examples that demonstrate how this objective has been met using both traditional Java 1.5 and Java 7 BGGA syntax as well as Scala programming language examples.[2]

Example

The following example uses Java 7 BGGA syntax to execute 100 unit tests on java.util.LinkedList. It asserts that when a list (x) is appended to another list (y), then the size() of the resulting list (xy) is equivalent to the sum of the size() of the two original lists.

Property p = property(arbLinkedList(arbInteger), arbLinkedList(arbInteger), {

  LinkedList x, LinkedList y =>      prop(append(x, y).size() == x.size() + y.size())        

});

Citations and footnotes

1. ^QuickCheck: A Lightweight Tool for Random Testing of Haskell Programs
2. ^* Java 1.5 examples* Java BGGA examples* Scala examples

External links

  • Reductio website
  • Reductio User Manual
  • Reductio RequalsHashCode
  • A Case for Automated Testing
  • Tests As Documentation

3 : Software testing tools|Free software programmed in Java (programming language)|Free software testing tools

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 21:11:51