Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Automated Module Testing in Prolog
Hoffman D., Strooper P. IEEE Transactions on Software Engineering17 (9):934-943,1991.Type:Article
Date Reviewed: Nov 1 1992

Protest is a system written in Prolog for the automatic testing of modules written in C. It acts as a test harness by calling the module through the C interface of the underlying Prolog system. The paper deals with particular features of the Protest system as well as with general considerations on testing techniques: both the input generation and the test oracle problem are addressed, and the authors discuss several strategies to make adequate choices.

Protest includes a tool for specifying the interface syntax of the module to be tested. Automatic syntax checking is performed on the test cases to exclude failures caused by errors in the testing environment.

In addition to user-defined sets of test cases (input plus correct output), the authors suggest writing an oracle in Prolog, that is, an executable specification of the module. For a given input, both the C and the Prolog versions of the program are run, and the outputs are compared. Reasonable development times and runtimes of such oracles are reported.

The Protest system is experimental and oriented toward further research. This status is reflected in the size and complexity of the modules to which Protest has been applied; they are typical toy examples. More insight would have been gained by applying the system to at least one real module of medium or large size.

The idea of using Prolog as a test environment for modules written in imperative languages is appealing; compared to C, Prolog’s expressiveness is high enough for it to be considered a specification language. On the practical side, the approach is easy and quick to use.

The paper is easy to read and of reasonable length. Basic knowledge about testing or Prolog is helpful but not strictly necessary. The discussion of related work and the references are satisfactory.

Reviewer:  A. B. Cremers Review #: CR116228
Bookmark and Share
 
Diagnostics (D.2.5 ... )
 
 
Modules And Interfaces (D.2.2 ... )
 
 
Prolog (D.3.2 ... )
 
 
Design Tools and Techniques (D.2.2 )
 
Would you recommend this review?
yes
no
Other reviews under "Diagnostics": Date
A fault identification algorithm for ti-diagnosable systems
Yang C., Masson G. IEEE Transactions on Computers 35(6): 503-510, 1986. Type: Article
Apr 1 1987
From diagnosis to diagnosability: axiomatization, measurement and application
Le Traon Y., Ouabdesselam F., Robach C., Baudry B. Journal of Systems and Software 65(1): 31-50, 2003. Type: Article
Aug 12 2003
Pro Apache Log4j (2nd ed.)
Gupta S., APress, LP, Berkeley, CA, 2005.  224, Type: Book (9781590594995)
Jun 27 2006
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy