This site's content was compiled from 1993 to 2006. Beyond that, Google is your friend.
Jonathan Ostroff and others
ESpec (Eiffel Specification) is a Software Quality Workbench supporting Specification Driven Development by helping developers to write and execute acceptance tests as well as unit tests within the same environment.
ESpec provides support for writing testable requirements and specifications at multiple stages of software development process. Developers can write requirements and specification such as Fit tests, unit tests, contracts as early as possible.
ESpec is a combination of three main components:
ESpec focuses on Unit Tests and Contracts as testable specifications and Fit Tables as testable requirements.
In order to run the tests:
This class tests the routines sqrt and close_enough of class MATH:
|
class MATH_TEST inherit NET_UNIT_TEST create make feature make is do make_test add_boolean_case (agent test_sqrt_4) to_html ("tests.htm") end test_sqrt_4: BOOLEAN is local m: MATH do comment("test_sqrt_4") create m Result := m.close_enough (m.sqrt(4),2) end end |
The test will not compile until you add a class MATH with the appropriate routines. You can then invoke es_test to run the ES_Test GUI.
ES_Test GUI / » image: ES_Test website